[ 
https://issues.apache.org/jira/browse/CALCITE-7325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18044520#comment-18044520
 ] 

Mihai Budiu commented on CALCITE-7325:
--------------------------------------

Fixed in 
[https://github.com/apache/calcite/commit/081e4420207a887d6ed80591bd7be45c986d05ea]

Thank you for the report and fix [~jkk123] 

> Incorrect VARIANT signatures 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
>              Labels: pull-request-available
>   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