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_r352408289
##########
File path: core/src/main/java/org/apache/calcite/prepare/PlannerImpl.java
##########
@@ -213,8 +214,10 @@ public SqlNode validate(SqlNode sqlNode) throws
ValidationException {
ensure(State.STATE_3_PARSED);
final SqlConformance conformance = conformance();
final CalciteCatalogReader catalogReader = createCatalogReader();
+ final SqlOperatorTable opTab =
+ ChainedSqlOperatorTable.of(operatorTable, catalogReader);
this.validator =
- new CalciteSqlValidator(operatorTable, catalogReader, typeFactory,
Review comment:
I have updated the code in a new commit. Thanks.
----------------------------------------------------------------
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