Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-9743

IndexOutOfBoundsException in Analyze test when touching partitions of functional.alltypes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 3.2.0, Impala 3.3.0, Impala 3.4.0
    • Impala 4.0.0
    • None
    • None
    • ghx-label-1

    Description

      One example:

      org.apache.impala.analysis.AnalyzeDDLTest.TestAlterTableAddDropPartition
      
      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)
      
      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)
      

      Another example:

      org.apache.impala.planner.PlannerTest.testPartitionKeyScans
      
      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)
      

      Attachments

        Activity

          People

            stigahuang Quanlong Huang
            gaborkaszab Gabor Kaszab
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: