Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6200

RelJson throw UnsupportedOperationException for RexDynamicParam

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.37.0
    • None

    Description

      Dump plan for the sql `select * from emp limit ?`.

      RelJson will throw the exception:

      unknown rex ?0
      java.lang.UnsupportedOperationException: unknown rex ?0
          at org.apache.calcite.rel.externalize.RelJson.toJson(RelJson.java:649)
          at org.apache.calcite.rel.externalize.RelJson.toJson(RelJson.java:455)
          at org.apache.calcite.rel.externalize.RelJsonWriter.put(RelJsonWriter.java:102)
          at org.apache.calcite.rel.externalize.RelJsonWriter.explain_(RelJsonWriter.java:85)
          at org.apache.calcite.rel.externalize.RelJsonWriter.done(RelJsonWriter.java:135)
          at org.apache.calcite.rel.AbstractRelNode.explain(AbstractRelNode.java:253)
          at org.apache.calcite.plan.RelOptUtil.dumpPlan(RelOptUtil.java:2109) 

      Attachments

        Issue Links

          Activity

            People

              jiajunbernoulli Jiajun Xie
              jiajunbernoulli Jiajun Xie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: