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

Jeyhun Karimov commented on FLINK-33547:
----------------------------------------

Hi [~xccui], the mismatch occurs depending on the input type. 
The data created by ARRAY[] SQL function becomes primitive arrays only when the 
ARRAY elements are NOT NULL.
This makes sense since primitives (e.g., float, int) cannot be null. 

That is why you get the described exception.

> SQL primitive array type after upgrading to Flink 1.18.0
> --------------------------------------------------------
>
>                 Key: FLINK-33547
>                 URL: https://issues.apache.org/jira/browse/FLINK-33547
>             Project: Flink
>          Issue Type: Technical Debt
>          Components: Table SQL / Runtime
>    Affects Versions: 1.18.0
>            Reporter: Xingcan Cui
>            Priority: Major
>
> We have some Flink SQL UDFs that use object array (Object[]) arguments and 
> take boxed arrays (e.g., Float[]) as parameters. After upgrading to Flink 
> 1.18.0, the data created by ARRAY[] SQL function became primitive arrays 
> (e.g., float[]) and it caused argument mismatch issues. I'm not sure if it's 
> expected.



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

Reply via email to