You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "TaoJIn (Jira)" <ji...@apache.org> on 2023/08/10 03:42:00 UTC
[jira] [Closed] (CALCITE-5857) set org.apache.calcite.sql.validateScopeChild to protected or public
[ https://issues.apache.org/jira/browse/CALCITE-5857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
TaoJIn closed CALCITE-5857.
---------------------------
Resolution: Won't Do
> set org.apache.calcite.sql.validateScopeChild to protected or public
> ---------------------------------------------------------------------
>
> Key: CALCITE-5857
> URL: https://issues.apache.org/jira/browse/CALCITE-5857
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.34.0, 1.35.0
> Reporter: TaoJIn
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.36.0
>
>
> org.apache.calcite.sql.validate.ScopeChild had a package private visibility.
> {code:java}
> class ScopeChild {
> final int ordinal;
> final String name;
> final SqlValidatorNamespace namespace;
> final boolean nullable;
> ...
> }
> {code}
> But it appear on a public interface org.apache.calcite.sql.validate.SqlValidatorScope.This make SqlValidatorScope could not be impelemnted or extend .
> {code:java}
> public interface SqlValidatorScope {
> ...
> Map<String, ScopeChild> findQualifyingTableNames(String columnName,
> SqlNode ctx, SqlNameMatcher nameMatcher);
> ...
> }
> {code}
> So it's possible to make the class public or protected, and the SqlValidatorScope could be used.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)