2025 Semistructured Data Flashcards

1
Q

What are the three semistructured datatypes

A

Variant, Object, and Array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What datatype does VARIANT hold

A

any other datatype

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What datatype does Array or Object hold

A

VARIANT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the maximum compressed size for a Variant datatype

A

16 mB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How are date and timestamps stored in a VARIANT column

A

As strings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does FLATTEN do?

A

Flattens nested values into separate columns that can be used to filter query results in a WHERE clause

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can users query JSON objects

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

T/F In both JSON query options, the column name is case insensitive

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

T/F In both JSON query options, the element name is case insensitive

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Can you use a Variant column in a clustering key?

A

No but you can specify an expression to extract a value in a clustering key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which param is required on a FLATTEN command

A

INPUT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Can JSON and PARQUET files be loaded into columns in the same table

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does SYSTEM$EXPLAIN_JSON_TO_TEXT do?

A

Converts JSON to human-readable text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly