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 11:06:09 UTC

[GitHub] [calcite] seancxmao opened a new pull request #1615: [CALCITE-3547] SqlValidatorException because Planner cannot find UDFs added to schema

seancxmao opened a new pull request #1615: [CALCITE-3547] SqlValidatorException because Planner cannot find UDFs added to schema
URL: https://github.com/apache/calcite/pull/1615
 
 
   `CalciteSqlValidator` inside `PlannerImpl` only looks for UDFs in `SqlStdOperatorTable`. When an UDF is added to schema, it is not available for searching by the validator. This PR aims to let UDFs in schema available to the validator just like what `CalcitePrepareImpl` does.
   
   * Add `SqlStdOperatorTable` and `CalciteCatalogReader` to `ChainedSqlOperatorTable`, which then available to `CalciteSqlValidator`
   * Add a test case in `PlannerTest` (`testValidateUserDefinedFunctionInSchema`)
   

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