Semi-structured Data Functions¶

These functions are used with:

The functions are grouped by type of operation performed:

  • Parsing JSON and XML data.

  • Creating and manipulating ARRAYs and OBJECTs.

  • Extracting values from semi-structured data (e.g. from an ARRAY or OBJECT).

  • Converting/casting semi-structured data types to/from other data types.

  • Determining the data type for values in semi-structured data (i.e. type predicates).

Sub-category

Function

Notes

JSON and XML Parsing

CHECK_JSON

CHECK_XML

Preview feature.

JSON_EXTRACT_PATH_TEXT

PARSE_JSON

PARSE_XML

Preview feature.

STRIP_NULL_VALUE

Array/Object Creation and Manipulation

ARRAY_AGG

See also Aggregate Functions.

ARRAY_APPEND

ARRAY_CAT

ARRAY_COMPACT

ARRAY_CONSTRUCT

ARRAY_CONSTRUCT_COMPACT

ARRAY_CONTAINS

ARRAY_DISTINCT

ARRAY_EXCEPT

ARRAY_FLATTEN

ARRAY_GENERATE_RANGE

ARRAY_INSERT

ARRAY_INTERSECTION

ARRAY_MAX

ARRAY_MIN

ARRAY_POSITION

ARRAY_PREPEND

ARRAY_REMOVE

ARRAY_REMOVE_AT

ARRAY_SIZE

ARRAY_SLICE

ARRAY_SORT

ARRAY_TO_STRING

ARRAYS_OVERLAP

OBJECT_AGG

See also Aggregate Functions.

OBJECT_CONSTRUCT

OBJECT_CONSTRUCT_KEEP_NULL

OBJECT_DELETE

OBJECT_INSERT

OBJECT_PICK

Extraction

FLATTEN

Table function.

GET

GET_IGNORE_CASE

GET_PATH , :

Variation of GET.

OBJECT_KEYS

Extracts keys from key/value pairs in OBJECT.

XMLGET

Preview feature.

Conversion/Casting

AS_<object_type>

STRTOK_TO_ARRAY

TO_ARRAY

TO_JSON

TO_OBJECT

TO_VARIANT

TO_XML

Type Predicates

IS_<object_type>

TYPEOF