dmitry-chirkov-dremio opened a new issue, #55615:
URL: https://github.com/apache/arrow/issues/55615
### Describe the bug, including details regarding any error messages,
version, and platform.
To reproduce:
1. Create an int32 field `x`.
2. Build an `IF` with `x` as the condition and `x` as both results. The
condition is not boolean.
3. Build a projector with it. `Make` returns `ExpressionValidationError:
condition must be of boolean type, found type int32`.
4. Wrap the same `IF` in an IN expression (`MakeInExpressionInt32(if_node,
{1})`) and build a projector.
`Make` returns OK and `Evaluate` returns a value.
`ExprValidator` checks the value list of IN but never visits `eval_expr`. An
invalid input expression is accepted.
Also, `InExpressionNode<int32_t>(nullptr, {1})` crashes `Projector::Make`
with SIGSEGV (exit code 139). It should return a validation error.
The crash is in `InExpressionNode<int>::ToString()` (`node.h:254`). The
cache key calls it before the validator runs.
Seen on macOS ARM64, main at `ab5b42237d`. The crash reproduces in CI on
Linux ARM64, Linux ASAN and macOS Intel.
AI tools paired with common sense helped with the investigation, fix, and
tests.
### Component(s)
C++, Gandiva
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]