Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-334

UT TestSummary failed with "java.lang.RuntimeException: Usage: B = FOREACH (GROUP A ALL) GENERATE Summary(A); Can not get schema from null" when Pig >=0.15

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.6.0
    • format-2.3.1
    • parquet-mr
    • None

    Description

      org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1002: Unable to store alias B
      at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1694)
      at org.apache.pig.PigServer.registerQuery(PigServer.java:623)
      at org.apache.pig.PigServer.registerQuery(PigServer.java:636)
      at parquet.pig.summary.TestSummary.testMaxIsZero(TestSummary.java:154)
      ...
      Caused by: org.apache.pig.backend.executionengine.ExecException: ERROR 0: java.lang.RuntimeException: Usage: B = FOREACH (GROUP A ALL) GENERATE Summary(A); Can not get schema from null
      at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:307)
      at org.apache.pig.PigServer.launchPlan(PigServer.java:1390)
      at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1375)
      at org.apache.pig.PigServer.execute(PigServer.java:1364)
      at org.apache.pig.PigServer.access$500(PigServer.java:113)
      at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1689)
      ... 32 more
      Caused by: java.lang.RuntimeException: Usage: B = FOREACH (GROUP A ALL) GENERATE Summary(A); Can not get schema from null
      at parquet.pig.summary.Summary.setInputSchema(Summary.java:266)
      at org.apache.pig.newplan.logical.expression.ExpToPhyTranslationVisitor.visit(ExpToPhyTranslationVisitor.java:530)
      at org.apache.pig.newplan.logical.expression.UserFuncExpression.accept(UserFuncExpression.java:132)
      at org.apache.pig.newplan.ReverseDependencyOrderWalkerWOSeenChk.walk(ReverseDependencyOrderWalkerWOSeenChk.java:69)
      at org.apache.pig.newplan.logical.relational.LogToPhyTranslationVisitor.visit(LogToPhyTranslationVisitor.java:808)
      at org.apache.pig.newplan.logical.relational.LOForEach.accept(LOForEach.java:87)
      at org.apache.pig.newplan.DependencyOrderWalker.walk(DependencyOrderWalker.java:75)
      at org.apache.pig.newplan.PlanVisitor.visit(PlanVisitor.java:52)
      at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.compile(HExecutionEngine.java:258)
      at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:293)
      ... 37 more
      Caused by: java.lang.NullPointerException
      at parquet.pig.summary.Summary.setInputSchema(Summary.java:261)
      ... 46 more

      It relates to a change on pig side: pig/src/org/apache/pig/newplan/logical/expression/ExpToPhyTranslationVisitor.java introduced by PIG-3294

      Attachments

        1. PARQUET-334-1.patch
          3 kB
          Daniel Dai

        Issue Links

          Activity

            People

              tfriedr Thomas Friedrich
              xiangli Xiang Li
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: