Paul Rogers created DRILL-6369:
----------------------------------
Summary: typeof() fails for constants
Key: DRILL-6369
URL: https://issues.apache.org/jira/browse/DRILL-6369
Project: Apache Drill
Issue Type: Bug
Affects Versions: 1.13.0
Reporter: Paul Rogers
TheĀ {{typeof()}} function reports the type of a column. For example:
{noformat}
SELECT typeof(a) FROM (VALUES (1)) AS T(a);
+---------+
| EXPR$0 |
+---------+
| BIGINT |
+---------+
{noformat}
But, it does not work on constants:
{noformat}
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
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)