velvia opened a new pull request #8815:
URL: https://github.com/apache/arrow/pull/8815
Currently, DataFusion SQL statements that compare negative numbers result in
an exception, as negative numbers are incorrectly parsed. The error thrown is
`InternalError("SQL binary operator cannot be interpreted as a unary operator")`
This PR adds a quick fix in SQL planner.rs, to parse SQL of the form `
UnaryOp { op: Minus, expr: Value(Number("1")) } } ` etc from SQL such as `WHERE
col1 >= -1` to allow proper evaluation of the above SQL as a literal number.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]