Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6369

typeof() fails for constants

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.13.0
    • 1.16.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
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            paul-rogers Paul Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: