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

Transform SUM(1) query to COUNT(1)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.0
    • None
    • None

    Description

      If we connect drill with tableau we see some query requests like , select sum(1) tablename.
      This results in pulling all the records out of the underlying datasource and aggregate them to get row count.
      The behavior can be optimized if the query gets transformed into a count(1) query which is likely to be optimized at the datasource level

      Attachments

        Activity

          People

            Unassigned Unassigned
            SudipM Sudip Mukherjee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: