You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Sandeep Gupta (Jira)" <ji...@apache.org> on 2019/10/08 11:11:00 UTC
[jira] [Created] (ASTERIXDB-2653) align object-add-fields and
object-pairs with respect field name and field value
Sandeep Gupta created ASTERIXDB-2653:
----------------------------------------
Summary: align object-add-fields and object-pairs with respect field name and field value
Key: ASTERIXDB-2653
URL: https://issues.apache.org/jira/browse/ASTERIXDB-2653
Project: Apache AsterixDB
Issue Type: Improvement
Components: FUN - Functions
Reporter: Sandeep Gupta
object_pairs(obj) returns array of object that describes the obj's field and value of the object.
object_add_fields(obj, arr-of-obj) takes as array of objects, arr-of-obj, that describe a field name and field value and add those to obj as field-name:field-value pair.
There is mismatch in naming convention with respect to object-pairs output and object-add-fields. object_pairs uses name, value as labels for output while object_add_fields uses field_name and field_value. Due to this extra processing is required to convert output of object_pairs so that it be passed to object_add_pairs.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)