You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Jinkun Liu (Jira)" <ji...@apache.org> on 2025/12/11 04:24:00 UTC

[jira] [Updated] (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 ]

Jinkun Liu updated CALCITE-7325:
--------------------------------
    Summary: Inconsistent handling of VARIANT between getAllowedSignatures and getChecker in SqlItemOperator  (was: Fix SqlItemOperator signatures description with VARIANT type)

> 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: Mihai Budiu
>            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)