You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "jackylau (Jira)" <ji...@apache.org> on 2023/03/09 11:20:00 UTC

[jira] [Comment Edited] (FLINK-31377) BinaryArrayData getArray/getMap should Handle null correctly AssertionError: valueArraySize (-6) should >= 0

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

jackylau edited comment on FLINK-31377 at 3/9/23 11:19 AM:
-----------------------------------------------------------

hi [~twalthr] ,this is a bug from array_contains, when i develop array_remove i found.
{code:java}
ArrayData.createElementGetter(needleDataType.getLogicalType()) {code}
when the needle is MAP NOT NULL. then ArrayData.createElementGetter will not process null in arrays. and will throw expcetion

 


was (Author: jackylau):
hi [~twalthr] ,this is a bug from array_contains, when i develop array_remove i found.
{code:java}
ArrayData.createElementGetter(needleDataType.getLogicalType()) {code}
when the needle is MAP NOT NULL. then ArrayData.createElementGetter will not process null is arrays. and will throw expcetion

 

> BinaryArrayData getArray/getMap should Handle null correctly AssertionError: valueArraySize (-6) should >= 0 
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-31377
>                 URL: https://issues.apache.org/jira/browse/FLINK-31377
>             Project: Flink
>          Issue Type: Bug
>    Affects Versions: 1.18.0
>            Reporter: jackylau
>            Priority: Major
>
> {code:java}
> // code placeholder
> when i use  
> /*elementGetter = ArrayData.createElementGetter(needleDataType.getLogicalType());*/, 
> if the element has map which is null
> Object getElementOrNull(ArrayData array, int pos);
> {code}



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