amaliujia commented on a change in pull request #13841:
URL: https://github.com/apache/beam/pull/13841#discussion_r567127862
##########
File path:
sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/ZetaSQLQueryPlanner.java
##########
@@ -196,7 +233,9 @@ private BeamRelNode convertToBeamRelInternal(String sql,
QueryParameters queryPa
RelMetadataQuery.THREAD_PROVIDERS.set(
JaninoRelMetadataProvider.of(root.rel.getCluster().getMetadataProvider()));
root.rel.getCluster().invalidateMetadataQuery();
- return (BeamRelNode) plannerImpl.transform(0, desiredTraits, root.rel);
+ BeamRelNode beamRelNode = (BeamRelNode) plannerImpl.transform(0,
desiredTraits, root.rel);
+ LOG.info("BEAMPlan>\n" + RelOptUtil.toString(beamRelNode));
Review comment:
I guess that was added for the purpose of debugging.
Keep this LOG.info is fine. I find that in CalciteQueryPlanner there is also
a such LOG.info.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]