You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2025/07/16 01:26:00 UTC
[jira] [Assigned] (CALCITE-7095) Allow MAP to be indexed by any type of key
[ https://issues.apache.org/jira/browse/CALCITE-7095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mihai Budiu reassigned CALCITE-7095:
------------------------------------
Assignee: Mihai Budiu
> Allow MAP<VARIANT, X> to be indexed by any type of key
> ------------------------------------------------------
>
> Key: CALCITE-7095
> URL: https://issues.apache.org/jira/browse/CALCITE-7095
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.40.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
>
> Today a MAP with VARIANT keys will not typecheck if it is indexed by a key with a non-variant type. I think the compiler should accept any type of key for this case.
> E.g., the following SQL should be legal:
> {code:sql}
> SELECT CAST(MAP['a', 1] AS MAP<VARIANT, VARIANT>)['a'] AS C
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)