mirror of
https://github.com/apache/impala.git
synced 2026-01-15 06:00:38 -05:00
Previously, an analytic function that used the same expr in both the 'partition by' and 'order by' clauses, and where the expr meets the criteria for being materialized before the sort, would hit an IllegalStateException due to the expr being inserted into the same ExprSubstitutionMap twice. If the values have already been partitioned on the expr, then all of the values for it in each partition will be the same and also ordering on the expr doesn't change the results. So, the fix is to simply exclude the duplicate expr from the 'order by' while still partitioning on it. Testing: - Added a regression test to PlannerTest. Change-Id: Id5f1d5fbc6f69df5850f96afed345ce27668c30b Reviewed-on: http://gerrit.cloudera.org:8080/9218 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Impala Public Jenkins
This directory contains Impala test workloads. The directory layout for the workloads should follow: workloads/ <data set name>/<data set name>_dimensions.csv <- The test dimension file <data set name>/<data set name>_core.csv <- A test vector file <data set name>/<data set name>_pairwise.csv <data set name>/<data set name>_exhaustive.csv <data set name>/queries/<query test>.test <- The queries for this workload