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

Ordered-set and hypothetical-set aggregate functions

    XMLWordPrintableJSON

Details

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

    Description

      Support ordered-set and hypothetical-set aggregate functions. Both have a WITHIN GROUP clause. These are supported by Oracle, PostgreSQL, Microsoft SQL Server.

      Examples of ordered-set aggregate functions are mode, percentile_cont, percentile_disc. See PostgreSQL doc.

      Examples of hypothetical-set aggregate functions are rank, dense_rank, percent_rank, cume_dist. See PostgreSQL doc.

      The SQL standard says (in section 4.16.4 Aggregate Functions):

      The hypothetical set functions are related to the window functions RANK, DENSE_RANK, PERCENT_RANK, and CUME_DIST, and use the same names, though with a different syntax.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              julianhyde Julian Hyde
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: