[
https://issues.apache.org/jira/browse/CALCITE-3406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
liuzonghao closed CALCITE-3406.
-------------------------------
Resolution: Not A Problem
Not a problem
> duplicate initialize scope
> --------------------------
>
> Key: CALCITE-3406
> URL: https://issues.apache.org/jira/browse/CALCITE-3406
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.21.0
> Reporter: liuzonghao
> Priority: Trivial
> Fix For: next
>
>
> scope was reinitialized in SqlValidatorImpl.validate() method.
> [https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java#L647|https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java#L650]
> {code:java}
> //代码占位符
> SqlValidatorScope scope = new EmptyScope(this);
> scope = new CatalogScope(scope, ImmutableList.of("CATALOG"));
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)