Skip to main content

Module list_udfs

Module list_udfs 

Source
Expand description

list-returning scalar UDFs: jsonb_entries, jsonb_elements, jsonb_path_elements List-returning JSONB scalar UDFs: jsonb_entries, jsonb_elements, jsonb_path_elements.

Unlike the other scalar JSONB UDFs, these return a plain Arrow List (never Dictionary<Int32, List<…>>), because unnest() cannot expand a dictionary-wrapped list — see the plan this module implements. properties columns are dictionary-encoded, so a dictionary fast path builds the list once per unique blob and expands it to row count via take, instead of re-parsing the same bytes on every row.

Structs§

JsonbElements
A scalar UDF that expands a JSONB array into a list of its elements.
JsonbEntries
A scalar UDF that expands a JSONB object or array into a list of {key, value} entries.
JsonbPathElements
A scalar UDF that expands all matches of a JSONPath expression on a JSONB value into a list.

Functions§

make_jsonb_elements_udf
Creates a user-defined function that expands a JSONB array into its elements.
make_jsonb_entries_udf
Creates a user-defined function that expands a JSONB object or array into {key, value} entries.
make_jsonb_path_elements_udf
Creates a user-defined function that expands all JSONPath matches from a JSONB value into a list.