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 2018/07/06 18:21:00 UTC

[jira] [Commented] (ASTERIXDB-2406) Implement pairs() function

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

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

Commit 6a8650e72c9e4b7f9cdf402e66753a7c16c7a80b in asterixdb's branch refs/heads/master from [~dlychagin-cb]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=6a8650e ]

[ASTERIXDB-2406][FUN] Implement pairs() function

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

Details:
- Implement pairs() function
- Fix object_pairs() function to return null for
  non-object input instead of raising type error
- Add documentation for pairs() and object_pairs()

Change-Id: I1d4917a496a2f49679d64109e5f5bf4b05609f01
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2734
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <ti...@apache.org>


> Implement pairs() function
> --------------------------
>
>                 Key: ASTERIXDB-2406
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2406
>             Project: Apache AsterixDB
>          Issue Type: Improvement
>          Components: FUN - Functions
>            Reporter: Dmitry Lychagin
>            Assignee: Dmitry Lychagin
>            Priority: Minor
>
> pairs() function returns an array of arrays describing fields of input object, including nested fields. 
>  For each field of the input_object the returned array contains an array with two elements.
>  The first element is the name and the second one is the value of the input object's field.
>  The input object is introspected recursively, so all fields of its nested objects are returned.
>  Nested objects contained in arrays and multisets are also processed by this function.



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