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
68 lines
1.3 KiB
Plaintext
68 lines
1.3 KiB
Plaintext
-- This file is automatically generated. You should know what you did if you want to edit this
|
|
-- !sql1 --
|
|
["LC", "LB", "alex"]
|
|
["LC", "LB", "LA"]
|
|
["LC", null, "LA"]
|
|
["LC", "LB", "LA"]
|
|
[null, "LC", "LB", "LA"]
|
|
[null, "LC", "LC", "LC", "LC"]
|
|
[null, "LC", "LC", "LC", "LC"]
|
|
|
|
-- !sql2 --
|
|
["alex", null, "LC", "LC", "LC", "LC"]
|
|
["LB"]
|
|
["LC"]
|
|
["LA"]
|
|
["LB"]
|
|
["LC"]
|
|
["LA"]
|
|
["LC"]
|
|
["LA"]
|
|
["LB"]
|
|
["LC"]
|
|
["LA"]
|
|
["LB"]
|
|
[null, "LC"]
|
|
[null, "LC", "LC"]
|
|
[null, "LC", "LC"]
|
|
|
|
-- !sql3 --
|
|
["LC", "LB", "alex", "LC", "LB", "LA", "LC", null, "LA", "LC", "LB", "LA", null, "LC", "LB", "LA", null, "LC", "LC", "LC", "LC", null, "LC", "LC", "LC", "LC"]
|
|
|
|
-- !sql4 --
|
|
["V1_3", "V1_2", null, "V2_3", "V2_2", "V2_1", "V3_3", null, "V3_1", "V4_3", "V4_2", "V4_1", "V5_3", "V5_3", "V5_2", "V5_1", "V6_3", null, "V6_3", null, "V6_3", "V7_3", null, "V7_3", null, "V7_3"]
|
|
|
|
-- !sql5 --
|
|
1 [2, 1, null]
|
|
2 [5, 5, 4]
|
|
3 [null, 6, 6]
|
|
4 [6, 6, 5]
|
|
5 [null, 5, 6]
|
|
6 [null, null, null, null, null]
|
|
7 [null, null, null, null, null]
|
|
|
|
-- !sql6 --
|
|
[""]
|
|
|
|
-- !sql7 --
|
|
["LC", "LB", "alex"]
|
|
["LC", "LB", "LA"]
|
|
["LC", null, "LA"]
|
|
["LC", "LB", "LA"]
|
|
["LC", "LB", "LA"]
|
|
[""]
|
|
[""]
|
|
|
|
-- !sql8 --
|
|
[null]
|
|
|
|
-- !sql9 --
|
|
1 [1.11, null, null]
|
|
2 [1.21, null, 1.23]
|
|
3 [1.24, 1.23, 1.21]
|
|
4 [1.22, null, 1.22]
|
|
5 [null, null, null]
|
|
7 [null]
|
|
8 [null]
|
|
|