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

ASF subversion and git services commented on ASTERIXDB-3482:
------------------------------------------------------------

Commit 69f382ec3d00466284e9f4b9fabfa3c60cbbd5fd in asterixdb's branch 
refs/heads/master from Wail Alkowaileet
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=69f382ec3d ]

[ASTERIXDB-3482][STO] Fix handling NULLs

- user model changes: no
- storage format changes: yes
- interface changes: no

Details:
- Ensure to write the nullbit (the level MSB) on merge
- Fix the ClassCastException in union node when the
  originalType is a nested node

Ext-ref: MB-63167
Change-Id: I19321e6e1cd2d569ba989afc45897da7054b86bd
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18658
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Murtadha Hubail <[email protected]>
Tested-by: Wail Alkowaileet <[email protected]>


> 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)

Reply via email to