Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0
Description
The current implement of typeof simply checks the type its operand but this is not correct because the operand maybe an invalid expression or a function that produces a side effect.
MRE:
assertThrows(RuntimeException.class, () -> assertQuery("SELECT TYPEOF(CAST('NOT_A_NUMBER' AS INTEGER))").check());
This query should return an error but it returns a string INTEGER.
Attachments
Issue Links
- is related to
-
IGNITE-23408 Calcite. 'Typeof' should fail in case of incorrect parameter.
- Resolved
- links to