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

Drill attempts to push "$SUM0" to JDBC storage plugin for AVG

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.19.0
    • 1.20.1
    • Storage - JDBC
    • None

    Description

      When running a query that includes the AVG aggregate against a JDBC data source, Drill transforms AVG into SUM0 / COUNT.  COUNT is pushed down to the source correctly but SUM0 is pushed down as "$SUM0" instead of SUM, causing a syntax error.  More info is visible at the link below.

       

      http://mail-archives.apache.org/mod_mbox/drill-user/202110.mbox/%3CCAGS_Q5dguiisDHK7LZXeyTUP322+tTXLayskdXHiMj0g-qSkCw@mail.gmail.com%3E

      Attachments

        Activity

          People

            volodymyr Vova Vysotskyi
            dzamo James Turton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: