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

NullPointerException in Calcite causes a PyFlink test failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 2.0-preview
    • None
    • Table SQL / API

    Description

      https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=62146&view=logs&j=b53e1644-5cb4-5a3b-5d48-f523f39bcf06&t=b68c9f5c-04c9-5c75-3862-a3a27aabbce3&l=25458

      java.lang.NullPointerException: metadataHandlerProvider
      Sep 15 03:14:04 E                   	at java.base/java.util.Objects.requireNonNull(Objects.java:235)
      Sep 15 03:14:04 E                   	at org.apache.calcite.rel.metadata.RelMetadataQueryBase.getMetadataHandlerProvider(RelMetadataQueryBase.java:122)
      Sep 15 03:14:04 E                   	at org.apache.calcite.rel.metadata.RelMetadataQueryBase.revise(RelMetadataQueryBase.java:118)
      Sep 15 03:14:04 E                   	at org.apache.calcite.rel.metadata.RelMetadataQuery.getNonCumulativeCost(RelMetadataQuery.java:333)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.getCost(VolcanoPlanner.java:727)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.getCostOrInfinite(VolcanoPlanner.java:714)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.propagateCostImprovements(VolcanoPlanner.java:971)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.addRelToSet(VolcanoPlanner.java:1408)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.registerImpl(VolcanoPlanner.java:1368)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.register(VolcanoPlanner.java:598)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:613)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:95)
      Sep 15 03:14:04 E                   	at org.apache.calcite.rel.AbstractRelNode.onRegister(AbstractRelNode.java:274)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.registerImpl(VolcanoPlanner.java:1270)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.register(VolcanoPlanner.java:598)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:613)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:95)
      Sep 15 03:14:04 E                   	at org.apache.calcite.rel.AbstractRelNode.onRegister(AbstractRelNode.java:274)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.registerImpl(VolcanoPlanner.java:1270)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.register(VolcanoPlanner.java:598)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:613)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:95)
      Sep 15 03:14:04 E                   	at org.apache.calcite.rel.AbstractRelNode.onRegister(AbstractRelNode.java:274)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.registerImpl(VolcanoPlanner.java:1270)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.register(VolcanoPlanner.java:598)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:613)
      Sep 15 03:14:04 E                   	at org.apache.calcite.plan.volcano.VolcanoPlanner.changeTraits(VolcanoPlanner.java:498)
      Sep 15 03:14:04 E                   	at org.apache.calcite.tools.Programs$RuleSetProgram.run(Programs.java:315)
      Sep 15 03:14:04 E                   	at org.apache.flink.table.planner.plan.optimize.program.FlinkVolcanoProgram.optimize(FlinkVolcanoProgram.scala:62)
      Sep 15 03:14:04 E                   	at org.apache.flink.table.planner.plan.optimize.program.FlinkChainedProgram.$anonfun$optimize$1(FlinkChainedProgram.scala:59)
      [...]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mapohl Matthias Pohl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: