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)