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

Zhenghua Gao updated CALCITE-4295:
----------------------------------
    Summary: Composite of two checkers with SqlOperandCountRange throws 
IllegalArgumentException  (was: Composite of two checker with 
SqlOperandCountRange throws IllegalArgumentException)

> 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
>          Time Spent: 40m
>  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