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

Preston Carman commented on ASTERIXDB-827:
------------------------------------------

Yes. The get-record-fields(record) expression returns the field details which 
includes a field called "is-open". The "is-open" field is a `boolean` value for 
if that filed is open or closed in the record.

Example:

        let $r1 := {"id": 1, 
            "project": "AsterixDB", 
            "address": {"city": "Irvine", "state": "CA"}, 
            "related": ["Hivestrix", "Preglix", "Apache VXQuery"] }
        return get-record-fields($r1)

Query result is:

        [ { "field-name": "id", "field-type": "INT64", "is-open": false }, 
          { "field-name": "project", "field-type": "STRING", "is-open": false 
}, 
          { "field-name": "address", "field-type": "RECORD", "is-open": false, 
"nested": [ 
            { "field-name": "city", "field-type": "STRING", "is-open": false }, 
            { "field-name": "state", "field-type": "STRING", "is-open": false } 
] }, 
          { "field-name": "related", "field-type": "ORDEREDLIST", "is-open": 
false, "list": [ 
            { "field-type": "STRING" }, 
            { "field-type": "STRING" }, 
            { "field-type": "STRING" } ] } ]

> Add ability to express the "open parts of a record"
> ---------------------------------------------------
>
>                 Key: ASTERIXDB-827
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-827
>             Project: Apache AsterixDB
>          Issue Type: Improvement
>          Components: AsterixDB, Functions - AQL
>            Reporter: asterixdb-importer
>            Assignee: Preston Carman
>            Priority: Minor
>
> Add ability to express the "open parts of a record"



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

Reply via email to