You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Michael J. Carey (Jira)" <ji...@apache.org> on 2019/10/08 12:39:00 UTC

[jira] [Comment Edited] (ASTERIXDB-2653) align object-add-fields and object-pairs with respect field name and field value

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

Michael J. Carey edited comment on ASTERIXDB-2653 at 10/8/19 12:38 PM:
-----------------------------------------------------------------------

Please check/fix more generally for all of:  [https://asterixdb.apache.org/docs/0.9.4.1/sqlpp/builtins.html#ObjectFunctions|http://example.com]
(There are at least one or two other places where the field- prefix shows up, I think.)


was (Author: dtabass):
Please check/fix more generally for all of:  [https://asterixdb.apache.org/docs/0.9.4.1/sqlpp/builtins.html#ObjectFunctions|http://example.com]

> 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
>            Priority: Major
>
> 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)