You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Wail Y. Alkowaileet (Jira)" <ji...@apache.org> on 2023/08/07 15:59:00 UTC
[jira] [Resolved] (ASTERIXDB-3234) Incorrect handling of empty arrays in columnar collections
[ https://issues.apache.org/jira/browse/ASTERIXDB-3234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wail Y. Alkowaileet resolved ASTERIXDB-3234.
--------------------------------------------
Resolution: Fixed
> 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
> 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)