calcite-notebooks icon indicating copy to clipboard operation
calcite-notebooks copied to clipboard

the difference between RelNode generated by RexBuilder and SqlToRelConverter.convertQuery()

Open lecssmi opened this issue 4 years ago • 0 comments

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 ?

lecssmi avatar Sep 16 '20 10:09 lecssmi