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

Ruben Q L resolved CALCITE-4295.
--------------------------------
    Resolution: Fixed

Fixed via 
https://github.com/apache/calcite/commit/87e7338e82f9dfb1373cee87b99f4741dd556d95
Thanks [~docete] for the PR!

> Composite of two checkers with SqlOperandCountRange throws 
> IllegalArgumentException
> -----------------------------------------------------------------------------------
>
>                 Key: CALCITE-4295
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4295
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.25.0
>            Reporter: Zhenghua Gao
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.26.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> If we define a type checker with:
> ```
> OperandTypes.or(
>     OperandTypes.variadic(SqlOperandCountRanges.from(3),
>     OperandTypes.variadic(SqlOperandCountRanges.from(4))
> ```
> will throw a java.lang.IllegalArgumentException
> The root cause is: 
> the minMin function of CompositeOperandTypeChecker should return the minimum 
> of lower bound of all SqlOperandCountRange
>  
>     



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to