You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2019/11/29 16:07:03 UTC

[GitHub] [calcite] jinxing64 commented on a change in pull request #1615: [CALCITE-3547] SqlValidatorException because Planner cannot find UDFs added to schema

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

 ##########
 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:
   Shall we also update the code in `PlannerImpl#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:
users@infra.apache.org


With regards,
Apache Git Services