[
https://issues.apache.org/jira/browse/FLINK-26363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17497881#comment-17497881
]
luoyuxia commented on FLINK-26363:
----------------------------------
There're are some issue like
[FLINK-25095|https://issues.apache.org/jira/browse/FLINK-25095],
[FLINK-20765|https://issues.apache.org/jira/browse/FLINK-20765] with same
reason to report such case.
We keep tracking it in here.
> Fail to use such expression like if(1= 1, 2, 3)
> -----------------------------------------------
>
> Key: FLINK-26363
> URL: https://issues.apache.org/jira/browse/FLINK-26363
> Project: Flink
> Issue Type: Sub-task
> Components: Connectors / Hive
> Reporter: luoyuxia
> Priority: Major
>
> Using hive dialect, can be reproduced using the following sql
> {code:sql}
> select if(1=1, 2,3)
> {code}
> Then it'll throw such exception " Mismatch of function's argument data type
> 'BOOLEAN NOT NULL' and actual argument type 'BOOLEAN'.".
> The main reason is ScalarOperatorGens always generates expressions will
> nullable return type, which can be different from the inferred type in
> Calcite.
> We need to fix it in ScalarOperatorGens.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)