calcite-notebooks
calcite-notebooks copied to clipboard
the difference between RelNode generated by RexBuilder and SqlToRelConverter.convertQuery()
I have trired your code in query-optimization.ipynb . When I use the Frameworks.getPlanner() to get the framework planner to do the transform from SqlNode to RelRoot. I use the RelRoot.rel instead of the one generated from RexBuilder.build(), there comes a exception. But your code make it success. So, any idea to use another api to parser sql statement and complete the rest of the process ?