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

Invalid function resolution when varchar type argument is passed to stddev function.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.6.0
    • Future
    • Functions - Drill
    • None

    Description

      Executing following query results in error in compiling the generated code in streaming agg batch. It should throw error saying there is no "stddev" function implementation found for varchar input. Implicit cast is applied to varchar, but the cast is castTinyInt which is also seems to be wrong.

      select stddev(full_name) from cp.`employee.json`;
      
      Query failed: Screen received stop request sent. Line 57, Column 26: "value" is neither a method, a field, nor a member class of "org.apache.drill.exec.expr.holders.NullableVarCharHolder" [96d9040e-a5ae-41b4-a409-36933817b8ef]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vkorukanti Venki Korukanti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: