This pr makes three changes to the display of complex types:
1. NULL value in complex types refers to being displayed as `null`, not `NULL`
2. struct type is displayed as "column_name": column_value
3. Time types such as `datetime` and `date`, are displayed with double quotes in complex types. like
`{1, "2023-10-26 12:12:12"}`
This pr also do a code refactor:
1. nesting_level is set to a member variable of the `DataTypeSerDe`, rather than a parameter in methods.
What's more, this pr fix a bug that fileSize is not correct, introduced by this pr: #25854
12 lines
235 B
Plaintext
12 lines
235 B
Plaintext
-- This file is automatically generated. You should know what you did if you want to edit this
|
|
-- !select --
|
|
1 \N
|
|
2 {}
|
|
3 {" 33,amory ":2, " bet ":20, " cler ":26}
|
|
4 {"k3":23, null:20, "k4":null}
|
|
5 {null:null}
|
|
|
|
-- !select_count --
|
|
4
|
|
|