You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/05/15 20:00:00 UTC

[jira] [Commented] (ASTERIXDB-2567) Exception encountered in serializing nullable record fields

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

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

Commit c99f57a6dee571b321ef4ca3c5d904cc67fc8138 in asterixdb's branch refs/heads/master from Ali Alsuliman
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=c99f57a ]

[ASTERIXDB-2567][RT] Fix serializing nullable record fields

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

Details:
When serializing a record, a field should be checked if it's nullable.
The value to be serialized should be checked if it's null or value to
serialize it correctly. Exceptions could happen when the record is in
an array if record fields are not checked.

Change-Id: I42105965e69c60bc4b123337296476b4d75f0ad8
Reviewed-on: https://asterix-gerrit.ics.uci.edu/3398
Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mh...@apache.org>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>


> Exception encountered in serializing nullable record fields
> -----------------------------------------------------------
>
>                 Key: ASTERIXDB-2567
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2567
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: RT - Runtime
>    Affects Versions: 0.9.4
>            Reporter: Ali Alsuliman
>            Assignee: Ali Alsuliman
>            Priority: Major
>             Fix For: 0.9.5
>
>
> When serializing a record, a field should be checked if it's nullable. The value to be serialized should be checked if it's null or value to serialize it correctly. Exceptions could happen when the record is in an array.
> The below query produces an exception.
>  
> {code:java}
> [{"f1": "fieldStr", "f2": 1 < "text"}] ;
> result: exception, ANull cannot be cast to ABoolean
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)