[
https://issues.apache.org/jira/browse/CALCITE-7230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated CALCITE-7230:
------------------------------------
Labels: pull-request-available (was: )
> Compiler rejects comparisons between NULL and a ROW value
> ---------------------------------------------------------
>
> Key: CALCITE-7230
> URL: https://issues.apache.org/jira/browse/CALCITE-7230
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.40.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.41.0
>
>
> This is exhibited by the following SqlValidatorTest:
> {code:java}
> sql("SELECT COALESCE(NULL, ROW(1))")
> .withValidatorConfig(c -> c.withCallRewrite(false))
> .type("RecordType(RecordType(INTEGER EXPR$0) EXPR$0) NOT NULL");
> {code}
> The program is rejected with:
> From line 1, column 8 to line 1, column 29: Parameters must be of the same
> type
> The sad thing is that I already fixed a similar issue in [CALCITE-7195], but
> my fix was insufficient.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)