Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-24241

test_table_environment_api.py fail with NPE

    XMLWordPrintableJSON

Details

    Description

      https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=23876&view=logs&j=821b528f-1eed-5598-a3b4-7f748b13f261&t=6bb545dd-772d-5d8c-f258-f5085fba3295&l=23263

      Sep 10 03:03:39 E                   py4j.protocol.Py4JJavaError: An error occurred while calling o16211.execute.
      Sep 10 03:03:39 E                   : java.lang.NullPointerException
      Sep 10 03:03:39 E                   	at java.util.Objects.requireNonNull(Objects.java:203)
      Sep 10 03:03:39 E                   	at org.apache.calcite.rel.metadata.RelMetadataQuery.<init>(RelMetadataQuery.java:144)
      Sep 10 03:03:39 E                   	at org.apache.calcite.rel.metadata.RelMetadataQuery.<init>(RelMetadataQuery.java:108)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.metadata.FlinkRelMetadataQuery.<init>(FlinkRelMetadataQuery.java:78)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.metadata.FlinkRelMetadataQuery.instance(FlinkRelMetadataQuery.java:59)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.calcite.FlinkRelOptClusterFactory$$anon$1.get(FlinkRelOptClusterFactory.scala:39)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.calcite.FlinkRelOptClusterFactory$$anon$1.get(FlinkRelOptClusterFactory.scala:38)
      Sep 10 03:03:39 E                   	at org.apache.calcite.plan.RelOptCluster.getMetadataQuery(RelOptCluster.java:178)
      Sep 10 03:03:39 E                   	at org.apache.calcite.rel.metadata.RelMdUtil.clearCache(RelMdUtil.java:965)
      Sep 10 03:03:39 E                   	at org.apache.calcite.plan.hep.HepPlanner.buildFinalPlan(HepPlanner.java:942)
      Sep 10 03:03:39 E                   	at org.apache.calcite.plan.hep.HepPlanner.buildFinalPlan(HepPlanner.java:939)
      Sep 10 03:03:39 E                   	at org.apache.calcite.plan.hep.HepPlanner.findBestExp(HepPlanner.java:194)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.optimize.program.FlinkHepProgram.optimize(FlinkHepProgram.scala:69)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.optimize.program.FlinkHepRuleSetProgram.optimize(FlinkHepRuleSetProgram.scala:87)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.optimize.program.FlinkGroupProgram$$anonfun$optimize$1$$anonfun$apply$1.apply(FlinkGroupProgram.scala:63)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.optimize.program.FlinkGroupProgram$$anonfun$optimize$1$$anonfun$apply$1.apply(FlinkGroupProgram.scala:60)
      Sep 10 03:03:39 E                   	at scala.collection.TraversableOnce$$anonfun$foldLeft$1.apply(TraversableOnce.scala:157)
      Sep 10 03:03:39 E                   	at scala.collection.TraversableOnce$$anonfun$foldLeft$1.apply(TraversableOnce.scala:157)
      Sep 10 03:03:39 E                   	at scala.collection.Iterator$class.foreach(Iterator.scala:891)
      Sep 10 03:03:39 E                   	at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)
      Sep 10 03:03:39 E                   	at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      Sep 10 03:03:39 E                   	at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      Sep 10 03:03:39 E                   	at scala.collection.TraversableOnce$class.foldLeft(TraversableOnce.scala:157)
      Sep 10 03:03:39 E                   	at scala.collection.AbstractTraversable.foldLeft(Traversable.scala:104)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.optimize.program.FlinkGroupProgram$$anonfun$optimize$1.apply(FlinkGroupProgram.scala:60)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.optimize.program.FlinkGroupProgram$$anonfun$optimize$1.apply(FlinkGroupProgram.scala:55)
      Sep 10 03:03:39 E                   	at scala.collection.TraversableOnce$$anonfun$foldLeft$1.apply(TraversableOnce.scala:157)
      Sep 10 03:03:39 E                   	at scala.collection.TraversableOnce$$anonfun$foldLeft$1.apply(TraversableOnce.scala:157)
      Sep 10 03:03:39 E                   	at scala.collection.immutable.Range.foreach(Range.scala:160)
      Sep 10 03:03:39 E                   	at scala.collection.TraversableOnce$class.foldLeft(TraversableOnce.scala:157)
      Sep 10 03:03:39 E                   	at scala.collection.AbstractTraversable.foldLeft(Traversable.scala:104)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.optimize.program.FlinkGroupProgram.optimize(FlinkGroupProgram.scala:55)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.optimize.program.FlinkChainedProgram$$anonfun$optimize$1.apply(FlinkChainedProgram.scala:62)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.optimize.program.FlinkChainedProgram$$anonfun$optimize$1.apply(FlinkChainedProgram.scala:58)
      Sep 10 03:03:39 E                   	at scala.collection.TraversableOnce$$anonfun$foldLeft$1.apply(TraversableOnce.scala:157)
      Sep 10 03:03:39 E                   	at scala.collection.TraversableOnce$$anonfun$foldLeft$1.apply(TraversableOnce.scala:157)
      Sep 10 03:03:39 E                   	at scala.collection.Iterator$class.foreach(Iterator.scala:891)
      Sep 10 03:03:39 E                   	at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)
      Sep 10 03:03:39 E                   	at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      Sep 10 03:03:39 E                   	at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      Sep 10 03:03:39 E                   	at scala.collection.TraversableOnce$class.foldLeft(TraversableOnce.scala:157)
      Sep 10 03:03:39 E                   	at scala.collection.AbstractTraversable.foldLeft(Traversable.scala:104)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.optimize.program.FlinkChainedProgram.optimize(FlinkChainedProgram.scala:57)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.optimize.StreamCommonSubGraphBasedOptimizer.optimizeTree(StreamCommonSubGraphBasedOptimizer.scala:163)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.optimize.StreamCommonSubGraphBasedOptimizer.doOptimize(StreamCommonSubGraphBasedOptimizer.scala:77)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.plan.optimize.CommonSubGraphBasedOptimizer.optimize(CommonSubGraphBasedOptimizer.scala:77)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.delegation.PlannerBase.optimize(PlannerBase.scala:300)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.planner.delegation.PlannerBase.translate(PlannerBase.scala:183)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.api.internal.TableEnvironmentImpl.translate(TableEnvironmentImpl.java:1704)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.api.internal.TableEnvironmentImpl.executeQueryOperation(TableEnvironmentImpl.java:807)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.api.internal.TableEnvironmentImpl.executeInternal(TableEnvironmentImpl.java:1289)
      Sep 10 03:03:39 E                   	at org.apache.flink.table.api.internal.TableImpl.execute(TableImpl.java:601)
      Sep 10 03:03:39 E                   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      Sep 10 03:03:39 E                   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      Sep 10 03:03:39 E                   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      Sep 10 03:03:39 E                   	at java.lang.reflect.Method.invoke(Method.java:498)
      Sep 10 03:03:39 E                   	at org.apache.flink.api.python.shaded.py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
      Sep 10 03:03:39 E                   	at org.apache.flink.api.python.shaded.py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
      Sep 10 03:03:39 E                   	at org.apache.flink.api.python.shaded.py4j.Gateway.invoke(Gateway.java:282)
      Sep 10 03:03:39 E                   	at org.apache.flink.api.python.shaded.py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
      Sep 10 03:03:39 E                   	at org.apache.flink.api.python.shaded.py4j.commands.CallCommand.execute(CallCommand.java:79)
      Sep 10 03:03:39 E                   	at org.apache.flink.api.python.shaded.py4j.GatewayConnection.run(GatewayConnection.java:238)
      Sep 10 03:03:39 E                   	at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xtsong Xintong Song
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: