Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-5117

Support percentile function after aggregate sub query

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v4.0.0
    • v4.0.1
    • None
    • None

    Description

      The following query execution will report an error:

      select percentile(t.gmv, 0.5) from ( select buyer_id,sum(price) as gmv from kylin_sales group by buyer_id ) t

      java.lang.IllegalArgumentException: Unsupported function name PERCENTILE_APPROX while executing SQL: "select percentile(t.gmv, 0.5) from ( select buyer_id,sum(price) as gmv from kylin_sales group by buyer_id ) t"

      So it's better to support `percentile` function after aggregate sub query.

      Attachments

        Activity

          People

            sleep1661 hujiahua
            sleep1661 hujiahua
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: