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
22 lines
1.5 KiB
Plaintext
22 lines
1.5 KiB
Plaintext
-- This file is automatically generated. You should know what you did if you want to edit this
|
|
-- !select --
|
|
1 [117341182548128045443221446, 170141183460469231731687303715884105727]
|
|
100 [9223372036854775808]
|
|
|
|
-- !select --
|
|
100 [1, 2, 3] [32767, 32768, 32769] [65534, 65535, 65536] ["a", "b", "c"] ["hello", "world"] ["2022-07-13"] ["2022-07-13 12:30:00"] [0.33, 0.67] [3.1415926, 0.878787878] [4.000000, 5.500000, 6.670000] [1, 0] ["happy life"]
|
|
200 [2] [32768] [65535] ["b"] ["hello"] ["2022-07-13"] ["2022-07-13 12:30:00"] [0.67] [3.1415926] [6.670000] [0] ["happy life"]
|
|
|
|
-- !select --
|
|
100 [1, 2, 3] [32767, 32768, 32769] [65534, 65535, 65536] ["a", "b", "c"] ["hello", "world"] ["2022-07-13"] ["2022-07-13 12:30:00"] [0.33, 0.67] [3.1415926, 0.878787878] [4.000000, 5.500000, 6.670000] [1, 0] ["happy life"]
|
|
200 [2] [32768] [65535] ["b"] ["hello"] ["2022-07-13"] ["2022-07-13 12:30:00"] [0.67] [3.1415926] [6.670000] [0] ["happy life"]
|
|
|
|
-- !select --
|
|
2.0 32768.0 65535.0 0.5000000149011612 2.010190239
|
|
2.0 32768.0 65535.0 0.6700000166893005 3.1415926
|
|
|
|
-- !select --
|
|
100 [1, 2, 3] [32767, 32768, 32769] [65534, 65535, 65536] ["a", "b", "c"] ["hello", "world"] ["2022-07-13"] ["2022-07-13 12:30:00"] [0.33, 0.67] [3.1415926, 0.878787878] [4.000000, 5.500000, 6.670000] [1, 0] ["happy life"]
|
|
200 [1, 2, 3] [32767, 32768, 32769] [65534, 65535, 65536] ["a", "b", "c"] ["hello", "world"] ["2022-07-13"] ["2022-07-13 12:30:00"] [0.33, 0.67] [3.1415926, 0.878787878] [4.000000, 5.500000, 6.670000] [1, 0, 1, 0] ["happy life"]
|
|
|