You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++][Gandiva] Improve function error messages #50111
Gandiva's runtime errors are surfaced to SQL users via ExecutionContext::set_error_msg. An audit of all ~90 call sites in cpp/src/gandiva/ turned up two recurring problems:
No SQL function name in the message. Users see "divide by zero error" or "Output buffer length can't be negative" with no indication of which SQL function produced it, making errors hard to localize in long queries.
The offending value is not echoed. Many messages reject a value (invalid weekday, bad boolean string, out-of-range index, …) without telling the user what was supplied.
A good runtime error should answer four questions: which function, what went wrong, what value triggered it, what's the valid range. This PR moves the highest-impact messages toward that bar.
Activity
omertt27 commentedon Jun 7, 2026
Hi, I’d like to work on this issue @lriggs
GH-50111: [C++][Gandiva] Improve function error messages (#50112)
kou commentedon Jun 16, 2026
Issue resolved by pull request 50112
#50112
DX-116527, DX-105095, DX-116032, DX-122700, DX-63755, DX-59505 (#144)