[
https://issues.apache.org/jira/browse/HIVE-952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carl Steinbach updated HIVE-952:
--------------------------------
Component/s: OLAP
> Support analytic NTILE function
> -------------------------------
>
> Key: HIVE-952
> URL: https://issues.apache.org/jira/browse/HIVE-952
> Project: Hive
> Issue Type: New Feature
> Components: OLAP, Query Processor
> Reporter: Carl Steinbach
>
> The NTILE function divides a set of ordered rows into equally sized buckets
> and assigns a bucket number to each row.
> Useful for calculating tertiles, quartiles, quintiles, etc.
> Example:
> {code:sql}
> SELECT last_name, salary,
> NTILE(4) OVER (ORDER BY salary DESC) AS quartile
> FROM employees
> WHERE department_id = 100;
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira