Michael Smith has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20379


Change subject: IMPALA-12383: Fix SingleNodePlanner aggregation limits
......................................................................

IMPALA-12383: Fix SingleNodePlanner aggregation limits

When IMPALA-2581 was implemented, it assumed all aggregation nodes would
have a pre-aggregation step that limits could be pushed to. That's not
the case when using SingleNodePlanner, such as when num_nodes=1. For
example, the following query would return 16 rows, not 10:

  set num_nodes=1;
  select distinct l_orderkey from tpch.lineitem limit 10;

Identifies all aggregation nodes that use pre-aggregation so we use
fast_limit_check in only those cases.

Testing:
- added a test case where we assert number of rows returned by an
  aggregation node (rather than an exchange or top-n).
- restores running with num_nodes=0 and num_nodes=1 for default test
  dimensions; IMPALA-561 was fixed ages ago.

Change-Id: Ic5eec1190e8e182152aa954897b79cc3f219c816
---
M fe/src/main/java/org/apache/impala/planner/AggregationNode.java
M fe/src/main/java/org/apache/impala/planner/DistributedPlanner.java
M tests/common/test_dimensions.py
M tests/query_test/test_aggregation.py
4 files changed, 27 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/79/20379/1
--
To view, visit http://gerrit.cloudera.org:8080/20379
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic5eec1190e8e182152aa954897b79cc3f219c816
Gerrit-Change-Number: 20379
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith <michael.sm...@cloudera.com>

Reply via email to