[ 
https://issues.apache.org/jira/browse/CALCITE-7325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jinkun Liu updated CALCITE-7325:
--------------------------------
    Description: 
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.

> Fix SqlItemOperator signatures description with VARIANT type
> ------------------------------------------------------------
>
>                 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)

Reply via email to