You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Krisztian Kasa <kk...@hortonworks.com> on 2019/10/22 10:48:03 UTC
Review Request 71645: HIVE-22292
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/71645/
-----------------------------------------------------------
Review request for hive, Jesús Camacho Rodríguez and Zoltan Haindrich.
Bugs: HIVE-22292
https://issues.apache.org/jira/browse/HIVE-22292
Repository: hive-git
Description
-------
Implement Hypothetical-Set Aggregate Functions
==============================================
1. rank, dense_rank, precent_rank, cume_dist
2. Allow unlimited column references in `WITHIN GROUP` clause
3. Refactor the implementation of the functions `percentile_cont` and `percentile_disc`:
- validate that only one parameter and column reference is passed to these two functions.
- since the semantics of the `WITHIN GROUP` clause allows multiple column references the parameter order had to be changed and this affect backward compatibility.
Diffs
-----
ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java 5e88f30cab
ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java 059919710e
ql/src/java/org/apache/hadoop/hive/ql/exec/WindowFunctionDescription.java 48645dc3f2
ql/src/java/org/apache/hadoop/hive/ql/exec/WindowFunctionInfo.java a0b0e48f4c
ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g 55c6863f67
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java 30d37914d0
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFCumeDist.java d0c155ff2d
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFDenseRank.java 992f5bfd21
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFPercentRank.java 64e9c8b7ca
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFPercentileCont.java ad61410180
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFPercentileDisc.java c8d3c12c80
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFRank.java 13e2f537cd
ql/src/java/org/apache/hadoop/hive/ql/util/NullOrdering.java PRE-CREATION
ql/src/test/org/apache/hadoop/hive/ql/exec/TestFunctionRegistry.java dead3ec472
ql/src/test/org/apache/hadoop/hive/ql/parse/TestParseWithinGroupClause.java 9d44ed87e9
ql/src/test/queries/clientpositive/hypothetical_set_aggregates.q PRE-CREATION
ql/src/test/results/clientpositive/hypothetical_set_aggregates.q.out PRE-CREATION
ql/src/test/results/clientpositive/udaf_percentile_cont.q.out f12cb6cd5e
ql/src/test/results/clientpositive/udaf_percentile_disc.q.out d10fee577c
Diff: https://reviews.apache.org/r/71645/diff/1/
Testing
-------
New q test added for testing Hypothetical-Set Aggregate Functions: hypothetical_set_aggregates.q
Run q tests: hypothetical_set_aggregates.q, udaf_percentile_cont.q, udaf_percentile_disc.q
Run unit test: TestParseWithinGroupClause.java
Thanks,
Krisztian Kasa