You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by bo...@apache.org on 2022/02/23 10:03:33 UTC
[impala] 01/03: IMPALA-11144: fix testAggregationNodeGroupByCardinalityCapping
This is an automated email from the ASF dual-hosted git repository.
boroknagyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git
commit f0d4afaff1e8ed93834f5198046d137bcd03a843
Author: noemi <np...@cloudera.com>
AuthorDate: Tue Feb 22 13:06:10 2022 +0100
IMPALA-11144: fix testAggregationNodeGroupByCardinalityCapping
IMPALA-10961 can decrease the size of the files in
functional_parquet.alltypes, which led to breaking the test that
rely on the file size.
Lowered the expected value, so it fits in the current tolerance range
of 0,05.
See the jira for more detailed analysis
Change-Id: I7956db444549c02fab3e56cb8bd281535f679776
Reviewed-on: http://gerrit.cloudera.org:8080/18264
Reviewed-by: Csaba Ringhofer <cs...@cloudera.com>
Reviewed-by: Fang-Yu Rao <fa...@cloudera.com>
Tested-by: Csaba Ringhofer <cs...@cloudera.com>
---
fe/src/test/java/org/apache/impala/planner/CardinalityTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fe/src/test/java/org/apache/impala/planner/CardinalityTest.java b/fe/src/test/java/org/apache/impala/planner/CardinalityTest.java
index e9b6eaa..067d838 100644
--- a/fe/src/test/java/org/apache/impala/planner/CardinalityTest.java
+++ b/fe/src/test/java/org/apache/impala/planner/CardinalityTest.java
@@ -366,11 +366,11 @@ public class CardinalityTest extends PlannerTestBase {
// The estimated number of rows caps the output cardinality.
verifyApproxCardinality(
"select distinct id, int_col from functional_parquet.alltypes",
- 12760, true, ImmutableSet.of(),
+ 12400, true, ImmutableSet.of(),
pathToFirstAggregationNode, AggregationNode.class);
verifyApproxCardinality(
"select distinct id, int_col from functional_parquet.alltypes",
- 12760, true, ImmutableSet.of(),
+ 12400, true, ImmutableSet.of(),
pathToSecondAggregationNode, AggregationNode.class);
// No column stats available and row estimation disabled - no estimate is possible.
verifyCardinality(