danny0405 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_r352411833
##########
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:
Can we make more effort to define a method like `createSqlValidator` that
used both by `validate` and `expandView` ?
----------------------------------------------------------------
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