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 2016/01/11 17:21:40 UTC
[jira] [Commented] (ASTERIXDB-1162) Bug in
ARecordVisitablePointable (open records)
[ https://issues.apache.org/jira/browse/ASTERIXDB-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15092204#comment-15092204 ]
ASF subversion and git services commented on ASTERIXDB-1162:
------------------------------------------------------------
Commit 4053f390af30d7d8cbf906fd874291a28a1b1c0b in incubator-asterixdb's branch refs/heads/master from [~heriram]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-asterixdb.git;h=4053f39 ]
ASTERIXDB-1187, ASTERIXDB-1162 and ASTERIXDB-1252 fixes, plus new internal functions
This change contains the following updates and fixes:
- New deep-equality function which also handles numeric equality,
e.g., [2.0, 2, 1.0] == [2, 2, 1].
- New internal functions for record manipulation, including add and remove fields from records
- Fixes for ASTERIXDB-1187: The RecordMergeDescriptor does not fully support
open record merge. Merging records with open fields results in "NullPointerException".
- Fixes to address issue ASTERIXDB-1162: dealing with closed or partly closed record
added to an open record field.
- Fixes issue ASTERIXDB-1252: Problems with Autogenerated Key
Change-Id: I3621ebdd71c7cd91b50d77a972ad863cea7fcbc2
Reviewed-on: https://asterix-gerrit.ics.uci.edu/298
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <ti...@apache.org>
> 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)