[
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)