You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Heri Ramampiaro (JIRA)" <ji...@apache.org> on 2015/11/06 11:40:27 UTC

[jira] [Created] (ASTERIXDB-1162) Bug in ARecordVisitablePointable (open records)

Heri Ramampiaro created ASTERIXDB-1162:
------------------------------------------

             Summary: Bug in ARecordVisitablePointable (open records)
                 Key: ASTERIXDB-1162
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1162
             Project: Apache AsterixDB
          Issue Type: Bug
          Components: Data Model
            Reporter: Heri Ramampiaro
            Assignee: Heri Ramampiaro


Symptom: 
When adding a closed record type to an open field (expanded) the value of the field ends up being empty ({ }). 

Possible Cause:
ARecordVisitablePointable, line 257. Here we try to allocated a value of type specified by a TypeTag. However, if the type is RECORD, it will always create an empty open ARecordType, which is fine. But, when one tries to set the value of the field in line 258 (which now calls ARecordVisitablePointable.set method again) the result will be an empty value since the value neither is expanded (because it is closed) nor providing any schema fields (because of the empty record allocation).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)