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

MergingReceiverBatch produces OK_NEW_SCHEMA post build schema phase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.14.0
    • None
    • None

    Description

      MergingRecordBatch produces OK_NEW_SCHEMA as part of first output batch post buildSchema phase. This is not necessary since in BuildSchema phase it already has the batch with schema and it always produces container of type SV NONE as well. Because of this behavior query like below doesn't work since there is HashAgg downstream to MergingReceiver which doesn't handle OK_NEW_SCHEMA post buildSchema phase.

       

      SELECT cust.c_custkey, cust.c_name, sum(cust.c_acctbal) 
      FROM (SELECT customer.c_custkey, customer.c_name, customer.c_acctbal
      FROM dfs.singleJson.`customer.json` customer 
      ORDER BY customer.c_name) cust
      GROUP BY cust.c_custkey, cust.c_name

      Attachments

        1. Plan.pdf
          24 kB
          Sorabh Hamirwasia

        Activity

          People

            shamirwasia Sorabh Hamirwasia
            shamirwasia Sorabh Hamirwasia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: