Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
Docs Required, Release Notes Required
Description
The simple example:
SELECT * FROM test ORDER BY -1
See test_order_by_exceptions.test.
Add statement error: <err message> to other test cases as well.
It seems that this issue is caused the current implementation of IgniteSqlValidator::validateLiteral which skips the validation entirely
@Override public void validateLiteral(SqlLiteral literal) { if (literal.getTypeName() != SqlTypeName.DECIMAL) { super.validateLiteral(literal); } }