[ 
https://issues.apache.org/jira/browse/CALCITE-1660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Hyde resolved CALCITE-1660.
----------------------------------
    Resolution: Not A Problem

SqlNameMatcher has a simple purpose: to match names, applying a particular 
case-sensitivity policy. For matching composite identifiers, use 
{{Scope.resolve(List<String> names, SqlNameMatcher nameMatcher, boolean deep, 
Resolved resolved)}}.

There are complexities such as skipping over certain records (as occurs for 
Phoenix's default column family) and handling errors when there are more than 
one match, and {{Scope.resolve}} does all of that.

> SqlNameMatcher does not match fields in a structure
> ---------------------------------------------------
>
>                 Key: CALCITE-1660
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1660
>             Project: Calcite
>          Issue Type: Bug
>    Affects Versions: 1.11.0
>            Reporter: Kevin Liew
>            Assignee: Julian Hyde
>
> Is this something that should be supported? It fails on assertion with 
> {{"F1"."C2"}}
> {code:java}
>   public String getSimple() {
>     assert names.size() == 1;
>     return names.get(0);
>   }
> {code}
> I ran into this issue while trying to create a view constrained by one field 
> of the {{STRUCT.T}} structure in {{MockCatalogReader}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to