[
https://issues.apache.org/jira/browse/CALCITE-7095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-7095.
----------------------------------
Fix Version/s: 1.41.0
Resolution: Fixed
Fixed in
https://github.com/apache/calcite/commit/e2183d4896325aa443f3ac43d0ea92823396e1ce
Thank you to all the reviewers
> 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
> Labels: pull-request-available
> Fix For: 1.41.0
>
>
> 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)