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
11 lines
690 B
Plaintext
11 lines
690 B
Plaintext
-- This file is automatically generated. You should know what you did if you want to edit this
|
|
-- !select --
|
|
1 {"f1": 1, "f2": 11, "f3": 111, "f4": 1111, "f5": 11111, "f6": 11111, "f7": 111111} \N \N {"f1": "", "f2": "", "f3": ""}
|
|
2 {"f1": null, "f2": null, "f3": null, "f4": null, "f5": null, "f6": null, "f7": null} {"f1": 2.1, "f2": 2.22, "f3": 0.333} \N {"f1": null, "f2": null, "f3": null}
|
|
3 \N {"f1": null, "f2": null, "f3": null} {"f1": "2023-02-23", "f2": "2023-02-23 00:10:19", "f3": "2023-02-23", "f4": "2023-02-23 00:10:19"} {"f1": "", "f2": "", "f3": ""}
|
|
4 \N \N {"f1": null, "f2": null, "f3": null, "f4": null} {"f1": "abc", "f2": "def", "f3": "hij"}
|
|
|
|
-- !select_count --
|
|
2 2
|
|
|