[
https://issues.apache.org/jira/browse/CALCITE-7236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18031233#comment-18031233
]
Mihai Budiu commented on CALCITE-7236:
--------------------------------------
There is a single call to add entries in idPositions, in
SqlAdvisorValidator.registerId.
How have you determined that this method is never called?
> sqlAdvisor.getQualifiedName() always returns null
> -------------------------------------------------
>
> Key: CALCITE-7236
> URL: https://issues.apache.org/jira/browse/CALCITE-7236
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.30.0
> Reporter: adnan
> Priority: Major
>
> the method: *@Nullable SqlMoniker getQualifiedName(String sql, int cursor)*
> in the sqlAdvisor class always returns null. This is because in the
> *SqlValidatorImpl* class, *lookupQualifiedName(sqlNode, pos)* tries to get
> values from the hashmap *idPositions,* but this hashmap is empty since it's
> never set.
>
> Is this expected behaviour?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)