You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "luoyuxia (Jira)" <ji...@apache.org> on 2022/04/25 13:09:00 UTC

[jira] [Commented] (FLINK-27379) CodeGenException: Unable to find common type of

    [ https://issues.apache.org/jira/browse/FLINK-27379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17527482#comment-17527482 ] 

luoyuxia commented on FLINK-27379:
----------------------------------

[~tartarus] Thanks for reporting it. Similar issue to Flink-26771. Extend it to compare between boolean and string type can fix it.

But it's more like to be a issue of Flink iteself for such sql can't be executed in Flink SQL.

I'll try to find the root case and the best way to fix it.

> CodeGenException: Unable to find common type of
> -----------------------------------------------
>
>                 Key: FLINK-27379
>                 URL: https://issues.apache.org/jira/browse/FLINK-27379
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Connectors / Hive
>    Affects Versions: 1.13.1, 1.15.0
>            Reporter: tartarus
>            Priority: Major
>
> We can reproduce through a UT
> Add test case in HiveDialectITCase
> {code:java}
> @Test
> public void testUnableToFindCommonType() {
>     tableEnv.executeSql("create table t1 (id bigint, name string, is_normal_play boolean)");
>     tableEnv.executeSql("select * from t1 where (name = '111' or name = '222') and is_normal_play = 'true'");
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)