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

Analyze table may fail when prefer_plain_java is set to true on codegen for resetValues

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.15.0
    • None
    • Execution - Codegen
    • None
    • prefer_plain_java: true

       

    Description

        The prefer_plain_java compile option is useful for debugging of generated code (can be set in dril-override.conf; the default value is false). When set to true, some "analyze table" calls generate code that fails due to addition of a SchemaChangeException which is not in the Streaming Aggr template.

      For example:

      apache drill (dfs.tmp)> create table lineitem3 as select * from cp.`tpch/lineitem.parquet`;
      +----------+---------------------------+
      | Fragment | Number of records written |
      +----------+---------------------------+
      | 0_0 | 60175 |
      +----------+---------------------------+
      1 row selected (2.06 seconds)
      apache drill (dfs.tmp)> analyze table lineitem3 compute statistics;
      Error: SYSTEM ERROR: CompileException: File 'org.apache.drill.exec.compile.DrillJavaFileObject[StreamingAggregatorGen4.java]', Line 7869, Column 20: StreamingAggregatorGen4.java:7869: error: resetValues() in org.apache.drill.exec.test.generated.StreamingAggregatorGen4 cannot override resetValues() in org.apache.drill.exec.physical.impl.aggregate.StreamingAggTemplate
       public boolean resetValues()
       ^
       overridden method does not throw org.apache.drill.exec.exception.SchemaChangeException (compiler.err.override.meth.doesnt.throw)
      

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ben-zvi Boaz Ben-Zvi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: