You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2025/07/16 01:26:00 UTC
[jira] [Created] (CALCITE-7095) Allow MAP to be indexed by any type of key
Mihai Budiu created CALCITE-7095:
------------------------------------
Summary: 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
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)