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
6 lines
540 B
Plaintext
6 lines
540 B
Plaintext
-- This file is automatically generated. You should know what you did if you want to edit this
|
|
-- !select_default --
|
|
1 [1, 2, 3] [32767, 32768, 32769] [65534, 65535, 65536] ["a", "b", "c"] ["hello", "world"] ["2022-07-13"] ["2022-08-15 12:30:00"] [0.331111, 0.672222] [3.141592, 0.878787] [4.222200000, 5.555500000, 6.670000000]
|
|
2 [4, 5, 6] [32767, 32768, 32769] [65534, 65535, 65536] ["d", "e", "f"] ["good", "luck"] ["2022-07-13"] ["2022-08-15 15:59:59"] [0.333336, 0.666677] [3.141592, 0.878787] [4.222220000, 5.555555500, 6.666677700]
|
|
|