2025 Semistructured Data Flashcards
What are the three semistructured datatypes
Variant, Object, and Array
What datatype does VARIANT hold
any other datatype
What datatype does Array or Object hold
VARIANT
What is the maximum compressed size for a Variant datatype
16 mB
How are date and timestamps stored in a VARIANT column
As strings
What does FLATTEN do?
Flattens nested values into separate columns that can be used to filter query results in a WHERE clause
How can users query JSON objects
Either with the dot notation or the bracket notation
<C1>:<L11_element>.<L2_>.<L3_element>
<C1>['<L1_element>']['<L2_element>'] ['<L3_element>']
</L3_element></L2_element></L1_element></C1></L3_element></L2_></L11_element></C1>
T/F In both JSON query options, the column name is case insensitive
True
T/F In both JSON query options, the element name is case insensitive
False
Can you use a Variant column in a clustering key?
No but you can specify an expression to extract a value in a clustering key
Which param is required on a FLATTEN command
INPUT
Can JSON and PARQUET files be loaded into columns in the same table
No
What does SYSTEM$EXPLAIN_JSON_TO_TEXT do?
Converts JSON to human-readable text