seancxmao commented on a change in pull request #1615: [CALCITE-3547] 
SqlValidatorException because Planner cannot find UDFs added to schema
URL: https://github.com/apache/calcite/pull/1615#discussion_r352427839
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/prepare/PlannerImpl.java
 ##########
 @@ -297,8 +300,10 @@ public RelRoot expandView(RelDataType rowType, String 
queryString,
     final SqlConformance conformance = conformance();
     final CalciteCatalogReader catalogReader =
         createCatalogReader().withSchemaPath(schemaPath);
+    final SqlOperatorTable opTab =
+        ChainedSqlOperatorTable.of(operatorTable, catalogReader);
 
 Review comment:
   Sure, this can help remove duplicate codes. I have added createSqlValidator 
in a new commit.

----------------------------------------------------------------
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

Reply via email to