wuchong 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_r393483443
##########
File path:
flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/delegation/PlannerContext.java
##########
@@ -159,40 +155,21 @@ public FlinkTypeFactory getTypeFactory() {
* @return configured rel builder
*/
public FlinkRelBuilder createRelBuilder(String currentCatalog, String
currentDatabase) {
- FlinkCalciteCatalogReader relOptSchema =
createCatalogReader(false, currentCatalog, currentDatabase);
+ FlinkCalciteCatalogReader relOptSchema = createCatalogReader(
+ false,
+ currentCatalog,
+ currentDatabase);
- Context chain = Contexts.chain(
+ Context chain = Contexts.of(
context,
// We need to overwrite the default scan factory, which
does not
// expand views. The expandingScanFactory uses the
FlinkPlanner to translate a view
// into a rel tree, before applying any subsequent
rules.
Review comment:
The comment is not suitable anymore, please adapt it.
----------------------------------------------------------------
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