Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.13.0
-
None
-
None
Description
TheĀ typeof() function reports the type of a column. For example:
SELECT typeof(a) FROM (VALUES (1)) AS T(a); +---------+ | EXPR$0 | +---------+ | BIGINT | +---------+
But, it does not work on constants:
SELECT typeof(10) FROM (VALUES (1)) AS T(a); Error: SYSTEM ERROR: IllegalArgumentException: Can not set org.apache.drill.exec.vector.complex.reader.FieldReader field org.apache.drill.exec.expr.fn.impl.UnionFunctions$GetType.input to org.apache.drill.exec.expr.holders.IntHolder