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
java.sql.SQLException: Server encountered an error [Not supported yet]. [SqlIllegalArgumentException[Not supported yet]
at org.elasticsearch.xpack.sql.expression.predicate.Not.asScript(Not.java:58)
at org.elasticsearch.xpack.sql.expression.function.scalar.ScalarFunction.toAttribute(ScalarFunction.java:38)
at org.elasticsearch.xpack.sql.planner.QueryFolder$FoldProject.rule(QueryFolder.java:140)
at org.elasticsearch.xpack.sql.planner.QueryFolder$FoldProject.rule(QueryFolder.java:106)
but it works if everything is a literal: SELECT NOT 1 > 2
Need to implement asScript and makePipe in Not unary scalar function.
The text was updated successfully, but these errors were encountered:
For other logical operators adding `NOT` in front of the expression
results in negation of the binary operator, e.g.:
`NOT a > b` becomes `a <= b`
but this is not the case for `NOT a = b`.
This implements the negation of equals when encountered in the SELECT
clause or needs to be translated to a painless script (e.g.:
`HAVING NOT count(*) = 10`)
Previously, an `SqlIllegalArgumentException[Not supported yet]` was
thrown.
Fixes: elastic#34558
SELECT NOT emp_no = 1 FROM test_emp
throws:but it works if everything is a literal:
SELECT NOT 1 > 2
Need to implement
asScript
andmakePipe
inNot
unary scalar function.The text was updated successfully, but these errors were encountered: