You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Yaqian Zhang (Jira)" <ji...@apache.org> on 2022/01/06 06:49:00 UTC

[jira] [Closed] (KYLIN-5117) Support percentile function after aggregate sub query

     [ https://issues.apache.org/jira/browse/KYLIN-5117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yaqian Zhang closed KYLIN-5117.
-------------------------------

Resolved in release 4.0.1 (2022-01-06)

> Support percentile function after aggregate sub query
> -----------------------------------------------------
>
>                 Key: KYLIN-5117
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5117
>             Project: Kylin
>          Issue Type: New Feature
>    Affects Versions: v4.0.0
>            Reporter: hujiahua
>            Assignee: hujiahua
>            Priority: Major
>             Fix For: v4.0.1
>
>
> The following query execution will report an error:
> {quote}
> 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"
> {quote}
> So it's better to support `percentile` function after aggregate sub query.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)