godfreyhe commented on a change in pull request #11340: [Flink 14338] Upgrade
Calcite version to 1.22 for Flink SQL
URL: https://github.com/apache/flink/pull/11340#discussion_r392067810
##########
File path:
flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/plan/metadata/FlinkRelMetadataQuery.java
##########
@@ -34,8 +34,6 @@
*/
public class FlinkRelMetadataQuery extends RelMetadataQuery {
- protected static final FlinkRelMetadataQuery PROTOTYPE = new
FlinkRelMetadataQuery(false);
Review comment:
Not really, the volcano planner will invalidate the metadata query (setting
`FlinkRelMetadataQuery` instance to null through
`RelOptCluster.invalidateMetadataQuery` method) when a rule transforms
successfully. So there are many `FlinkRelMetadataQuery` instances created by
`new FlinkRelMetadataQuery()`
----------------------------------------------------------------
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]
With regards,
Apache Git Services