[
https://issues.apache.org/jira/browse/CALCITE-4644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17367682#comment-17367682
]
Julian Hyde commented on CALCITE-4644:
--------------------------------------
Unit interval is perfect.
In the SQL reference, I think you should call the parameter "fraction, like
[PostgreSQL
doc|https://www.postgresql.org/docs/9.4/functions-aggregate.html#FUNCTIONS-ORDEREDSET-TABLE].
For those functions that *require* ordering ({{RANK}}, {{PERCENTILE_CONT}},
etc.), I think you should start a new table in the "Aggregate functions"
section. And include "WITHIN GROUP (ORDER BY orderItems)" in their syntax, as
PostgreSQL does.
Functions that merely *allow* ordering (e.g. {{COLLECT}}) should stay in the
current table.
> Add PERCENTILE_CONT and PERCENTILE_DISC aggregate functions
> -----------------------------------------------------------
>
> Key: CALCITE-4644
> URL: https://issues.apache.org/jira/browse/CALCITE-4644
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: Rafay A
> Priority: Major
> Labels: pull-request-available
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Add percentile functions in the operator table.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)