You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2016/09/21 18:16:20 UTC
[jira] [Commented] (CALCITE-1378) ArrayIndexOutOfBoundException in
sql-to-rel conversion for two-level columns
[ https://issues.apache.org/jira/browse/CALCITE-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15510730#comment-15510730 ]
Julian Hyde commented on CALCITE-1378:
--------------------------------------
+1
I'd write
{code}
+ final String tableName = map.keySet().iterator().next();
+ final SqlValidatorNamespace namespace = map.values().iterator().next();
{code}
a little differently, assigning {{map.entrySet().iterator().next()}} to a variable rather than independently iterating over keys and values.
> ArrayIndexOutOfBoundException in sql-to-rel conversion for two-level columns
> ----------------------------------------------------------------------------
>
> Key: CALCITE-1378
> URL: https://issues.apache.org/jira/browse/CALCITE-1378
> Project: Calcite
> Issue Type: Bug
> Affects Versions: 1.9.0
> Reporter: Maryann Xue
> Assignee: Maryann Xue
> Labels: phoenix
> Attachments: CALCITE-1378.patch
>
>
> There was a little bit left over to be done for CALCITE-1208, as mentioned in https://issues.apache.org/jira/browse/CALCITE-1208?focusedCommentId=15427099&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15427099.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)