Module json

Module json 

Source
Expand description

JSON support for Apache Arrow.

Structs§

JsonArray
A specialized array for JSON data stored as JSONB binary format

Constants§

ARROW_JSON_EXT_NAME
Arrow extension type name for JSON data (Arrow official)
JSON_EXT_NAME
Arrow extension type name for JSON data (Lance internal)

Functions§

arrow_json_to_lance_json
Convert an Arrow JSON field to Lance JSON field (with JSONB storage)
convert_json_columns
Convert a RecordBatch with Arrow JSON columns to Lance JSON format (JSONB)
convert_lance_json_to_arrow
Convert a RecordBatch with Lance JSON columns (JSONB) back to Arrow JSON format (strings)
decode_json
Decode JSONB bytes to JSON string
encode_json
Encode JSON string to JSONB format
has_json_fields
Check if a field or any of its descendants is a JSON field
is_arrow_json_field
Check if a field is an Arrow JSON extension field (PyArrow pa.json() type)
is_json_field
Check if a field is a JSON extension field (Lance internal JSONB storage)
json_field
Create a JSON field with the appropriate extension metadata