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

Mihai Budiu resolved CALCITE-6984.
----------------------------------
    Fix Version/s: 1.40.0
       Resolution: Fixed

Fixed in 
https://github.com/apache/calcite/commit/f438bf62e075b830fa1bd1f1aa28358123ffbe4a
Thank you for your reviews [~asolimando][~jensen]

> FamilyOperandTypeChecker with a Predicate describing optional arguments does 
> not reject mistyped expressions
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-6984
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6984
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.39.0
>            Reporter: Mihai Budiu
>            Assignee: Mihai Budiu
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.40.0
>
>
> [CALCITE-6976] is a symptom of a deeper problem: the family operand type 
> checker using a predicate for specifying optional arguments will accept 
> mistyped expressions if their number of arguments does not match the maximum 
> number of arguments.
> This affects at least 20 functions from SqlLibraryOperators.
> A partial solution is to use the .or type checker when possible.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to