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

Benchao Li commented on FLINK-16181:
------------------------------------

Fixed via:

1.12.0: d677f02853ed7395730c6282cd33bb0f5bbf4bd3

1.11.1: 39b4778a3eaae81902203d558335ed4fbbd8e379

> IfCallGen will throw NPE for primitive types in blink
> -----------------------------------------------------
>
>                 Key: FLINK-16181
>                 URL: https://issues.apache.org/jira/browse/FLINK-16181
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>            Reporter: Benchao Li
>            Assignee: Benchao Li
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> It can be reproduced by a simple test case:
> Add below to {{ScalarOperatorsTest}}
> {code:java}
> testSqlApi("IF(true, CAST('non-numeric' AS BIGINT), 0)", "null")
> {code}
>  
> IMO, it's {{IfCallGen}}'s bug, which should judge the nullTerm of operands 
> first before assignment.
> cc [~lzljs3620320] [~jark]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to