[
https://issues.apache.org/jira/browse/DRILL-6369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Volodymyr Vysotskyi resolved DRILL-6369.
----------------------------------------
Resolution: Fixed
Fixed in the scope of DRILL-6533
> 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
> Priority: Minor
> Fix For: 1.16.0
>
>
> 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)