Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5411

Update Spark Dialect to support ROLLUP & CUBE aggregate functions.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.32.0
    • 1.35.0
    • None

    Description

      Support for standard

      GROUP BY { group_expression |
      { ROLLUP | CUBE | GROUPING SETS }
      (grouping_set [ , ...]) } [ , ... ] 

       syntax was added to Spark several releases ago in addition to the previously supported non-standard syntax 

      GROUP BY group_expression [ , group_expression [ , ... ] ] [ WITH { ROLLUP | CUBE } ] 

      See: https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select-groupby.html

      We need to update SparkSqlDialect implementation to reflect these changes in supported SQL syntax.

      Attachments

        Issue Links

          Activity

            People

              lchistov1987 Leonid Chistov
              lchistov1987 Leonid Chistov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m