You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Alessandro Solimando (Jira)" <ji...@apache.org> on 2025/12/11 06:47:00 UTC
[jira] [Assigned] (CALCITE-7325) Inconsistent handling of VARIANT between getAllowedSignatures and getChecker in SqlItemOperator
[ https://issues.apache.org/jira/browse/CALCITE-7325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alessandro Solimando reassigned CALCITE-7325:
---------------------------------------------
Assignee: Jinkun Liu (was: Mihai Budiu)
> Inconsistent handling of VARIANT between getAllowedSignatures and getChecker in SqlItemOperator
> -----------------------------------------------------------------------------------------------
>
> Key: CALCITE-7325
> URL: https://issues.apache.org/jira/browse/CALCITE-7325
> Project: Calcite
> Issue Type: Bug
> Reporter: Jinkun Liu
> Assignee: Jinkun Liu
> Priority: Trivial
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> In core/src/main/java/org/apache/calcite/sql/fun/SqlItemOperator.java, the behavior and the documented signatures for VARIANT are inconsistent between getAllowedSignatures and getChecker:
> * getAllowedSignatures declares the following signature for ITEM:
> ** <VARIANT>[<ANY>]
> * However, getChecker currently returns:
> ** OperandTypes.family(SqlTypeFamily.INTEGER).or(OperandTypes.family(SqlTypeFamily.CHARACTER)) for VARIANT , effectively allowing only integer or character indexes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)