You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Ian Maxon (Jira)" <ji...@apache.org> on 2024/08/16 17:04:00 UTC
[jira] [Updated] (ASTERIXDB-3482) NULL bit is cleared on merge & ClassCastException is thrown when handling NULL with union
[ https://issues.apache.org/jira/browse/ASTERIXDB-3482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ian Maxon updated ASTERIXDB-3482:
---------------------------------
Labels: triaged (was: )
> NULL bit is cleared on merge & ClassCastException is thrown when handling NULL with union
> -----------------------------------------------------------------------------------------
>
> Key: ASTERIXDB-3482
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-3482
> 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.10
>
>
> NULL values in columnar storage is determined by setting the MSB of the level where the null occurred. However, the reader clears the MSB to get the actual level. When writing the level during the merge, the level is written without the MSB – which can turn the null into a MISSING or an array delimiter (if the null is in an array).
>
> Another issue observed when adding a null value to a UNION node. The issue is if the original node type (before it becomes a union due to type heterogeneity) is a nested value, a ClassCastException is thrown in the ColumnTransformer. This is due to trying to cast the nested node to a primitive one to add the primitive value NULL.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)