[
https://issues.apache.org/jira/browse/IMPALA-9743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17119142#comment-17119142
]
ASF subversion and git services commented on IMPALA-9743:
---------------------------------------------------------
Commit 974fce33dc5d41579ac6aa25f0a803fbd165d634 in impala's branch
refs/heads/master from stiga-huang
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=974fce3 ]
IMPALA-9743: ExprCardinalityTest should reset the test flag at the end of the
test
In the previous patch, we set the test flag when running
ExprCardinalityTest. We should reset this flag at the end of the test.
Otherwise, some tests that require this flag unset (e.g. CatalogTest)
will fail.
Ideally, each FE test should take care of the test flag and set/unset it
explicitly. We'll gone through all tests to fix this in IMPALA-9780.
Tests:
- Ran CORE tests
Change-Id: Id8a1085d73666db5df038dc231f14c31206375ed
Reviewed-on: http://gerrit.cloudera.org:8080/15987
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> IndexOutOfBoundsException in Analyze test when touching partitions of
> functional.alltypes
> -----------------------------------------------------------------------------------------
>
> Key: IMPALA-9743
> URL: https://issues.apache.org/jira/browse/IMPALA-9743
> Project: IMPALA
> Issue Type: Bug
> Affects Versions: Impala 4.0
> Reporter: Gabor Kaszab
> Assignee: Quanlong Huang
> Priority: Blocker
>
> One example:
> {code:java}
> org.apache.impala.analysis.AnalyzeDDLTest.TestAlterTableAddDropPartition
> {code}
> {code:java}
> Error Message
> Error during analysis:
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> sql:
> alter table functional.alltypes drop if exists partition(year=2050, month=10)
> {code}
> {code:java}
> Stacktrace
> java.lang.AssertionError:
> Error during analysis:
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> sql:
> alter table functional.alltypes drop if exists partition(year=2050, month=10)
> at org.junit.Assert.fail(Assert.java:88)
> at
> org.apache.impala.common.FrontendFixture.analyzeStmt(FrontendFixture.java:397)
> at
> org.apache.impala.common.FrontendTestBase.AnalyzesOk(FrontendTestBase.java:244)
> at
> org.apache.impala.common.FrontendTestBase.AnalyzesOk(FrontendTestBase.java:185)
> at
> org.apache.impala.analysis.AnalyzeDDLTest.TestAlterTableAddDropPartition(AnalyzeDDLTest.java:74)
> {code}
> Another example:
> {code:java}
> org.apache.impala.planner.PlannerTest.testPartitionKeyScans
> {code}
> {code:java}
> Query:
> select c1, c2 from
> (select min(year) c1, max(month) c2, count(int_col) c3
> from functional.alltypes where year = 2000) t;
> Error Stack:
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.rangeCheck(ArrayList.java:653)
> at java.util.ArrayList.get(ArrayList.java:429)
> at
> org.apache.impala.catalog.HdfsTable.getPartitionValueMap(HdfsTable.java:392)
> at
> org.apache.impala.planner.HdfsPartitionPruner.evalBinaryPredicate(HdfsPartitionPruner.java:273)
> at
> org.apache.impala.planner.HdfsPartitionPruner.evalSlotBindingFilter(HdfsPartitionPruner.java:440)
> at
> org.apache.impala.planner.HdfsPartitionPruner.prunePartitions(HdfsPartitionPruner.java:153)
> at
> org.apache.impala.planner.SingleNodePlanner.createHdfsScanPlan(SingleNodePlanner.java:1353)
> at
> org.apache.impala.planner.SingleNodePlanner.createScanNode(SingleNodePlanner.java:1479)
> at
> org.apache.impala.planner.SingleNodePlanner.createTableRefNode(SingleNodePlanner.java:1667)
> at
> org.apache.impala.planner.SingleNodePlanner.createTableRefsPlan(SingleNodePlanner.java:826)
> at
> org.apache.impala.planner.SingleNodePlanner.createSelectPlan(SingleNodePlanner.java:650)
> at
> org.apache.impala.planner.SingleNodePlanner.createQueryPlan(SingleNodePlanner.java:249)
> at
> org.apache.impala.planner.SingleNodePlanner.createInlineViewPlan(SingleNodePlanner.java:1100)
> at
> org.apache.impala.planner.SingleNodePlanner.createTableRefNode(SingleNodePlanner.java:1678)
> at
> org.apache.impala.planner.SingleNodePlanner.createTableRefsPlan(SingleNodePlanner.java:826)
> at
> org.apache.impala.planner.SingleNodePlanner.createSelectPlan(SingleNodePlanner.java:650)
> at
> org.apache.impala.planner.SingleNodePlanner.createQueryPlan(SingleNodePlanner.java:249)
> at
> org.apache.impala.planner.SingleNodePlanner.createSingleNodePlan(SingleNodePlanner.java:150)
> at org.apache.impala.planner.Planner.createPlanFragments(Planner.java:118)
> at org.apache.impala.planner.Planner.createPlans(Planner.java:264)
> at org.apache.impala.service.Frontend.createExecRequest(Frontend.java:1416)
> at
> org.apache.impala.service.Frontend.getPlannedExecRequest(Frontend.java:1742)
> at org.apache.impala.service.Frontend.doCreateExecRequest(Frontend.java:1603)
> at org.apache.impala.service.Frontend.getTExecRequest(Frontend.java:1497)
> at org.apache.impala.service.Frontend.createExecRequest(Frontend.java:1467)
> at
> org.apache.impala.planner.PlannerTestBase.testPlan(PlannerTestBase.java:521)
> at
> org.apache.impala.planner.PlannerTestBase.runTestCase(PlannerTestBase.java:423)
> at
> org.apache.impala.planner.PlannerTestBase.runPlannerTestFile(PlannerTestBase.java:910)
> at
> org.apache.impala.planner.PlannerTestBase.runPlannerTestFile(PlannerTestBase.java:846)
> at
> org.apache.impala.planner.PlannerTest.testPartitionKeyScans(PlannerTest.java:456)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]