You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Paul Rogers (JIRA)" <ji...@apache.org> on 2018/04/29 04:22:00 UTC

[jira] [Created] (DRILL-6369) typeof() fails for constants

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)