[ 
https://issues.apache.org/jira/browse/ASTERIXDB-3234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ian Maxon updated ASTERIXDB-3234:
---------------------------------
    Labels: triaged  (was: )

> Incorrect handling of empty arrays in columnar collections
> ----------------------------------------------------------
>
>                 Key: ASTERIXDB-3234
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-3234
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: STO - Storage
>    Affects Versions: 0.9.9
>            Reporter: Wail Y. Alkowaileet
>            Assignee: Wail Y. Alkowaileet
>            Priority: Critical
>              Labels: triaged
>             Fix For: 0.9.9
>
>
> Currently, columnar collections doesn't handle empty arrays correctly.
>  * If an array was always empty and a flush occurred, a NPE exception is 
> thrown
> {noformat}
> java.lang.NullPointerException: Cannot invoke 
> "org.apache.asterix.column.metadata.schema.AbstractSchemaNode.serialize(java.io.DataOutput,
>  org.apache.asterix.column.metadata.PathInfoSerializer)" because "this.item" 
> is null {noformat}
>  *  If the array item type is known but the array itself is empty, we treat 
> it as if the array itself is missing. This is incorrect and produces a 
> different result compared to the row format. Below is an example of the 
> current output of an empty array
> {noformat}
> Input: {"a" []}
> Output: {} {noformat}
>  



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

Reply via email to