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

Support distinct aggregates in window functions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-incubating
    • 1.13.0
    • None
    • None

    Description

      Migrated from https://groups.google.com/forum/#!topic/optiq-dev/8xE3PriKXmI

      Does Optiq support Windowing func with Distinct?

      Ex: select avg(distinct c_int) over(PARTITION BY key ORDER BY value ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) as p from t1;
      Hive support Windowing functions with "Distinct" (UDAF with Distinct).

      I am using "m_cluster.getRexBuilder().makeOver" to build window.
      Optiq doesn't seems to support distinct on Windowing Functions.
      Am i missing something?

      Attachments

        Issue Links

          Activity

            People

              julianhyde Julian Hyde
              vladimirsitnikov Vladimir Sitnikov
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: