Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0-beta2
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.