You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Forward Xu (JIRA)" <ji...@apache.org> on 2019/02/25 03:30:00 UTC

[jira] [Created] (CALCITE-2864) Add the JSON_DEPTH function

Forward Xu created CALCITE-2864:
-----------------------------------

             Summary: Add the JSON_DEPTH function
                 Key: CALCITE-2864
                 URL: https://issues.apache.org/jira/browse/CALCITE-2864
             Project: Calcite
          Issue Type: New Feature
            Reporter: Forward Xu


Returns the maximum depth of a JSON document. Returns {{NULL}} if the argument is {{NULL}}. An error occurs if the argument is not a valid JSON document.

An empty array, empty object, or scalar value has depth 1. A nonempty array containing only elements of depth 1 or nonempty object containing only member values of depth 1 has depth 2. Otherwise, a JSON document has depth greater than 2.

 



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