mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
e06d3ca1a5
Introduce `removeLowCardinalityAndNullable` function Fix incorrect removeLowCar/removeNullable usages Add more MySQL text protocol tests Deprecate old Java client tests Use JDK 17 for test MySQL Java container
130 lines
4.6 KiB
Plaintext
130 lines
4.6 KiB
Plaintext
### testSimpleDataTypes
|
|
Row #1
|
|
i8 type is TINYINT, value: -128
|
|
i16 type is SMALLINT, value: -32768
|
|
i32 type is INT, value: -2147483648
|
|
i64 type is BIGINT, value: -9223372036854775808
|
|
i128 type is CHAR, value: -170141183460469231731687303715884105728
|
|
i256 type is CHAR, value: -57896044618658097711785492504343953926634992332820282019728792003956564819968
|
|
ui8 type is TINYINT, value: 120
|
|
ui16 type is SMALLINT, value: 1234
|
|
ui32 type is INT, value: 51234
|
|
ui64 type is BIGINT, value: 421342
|
|
ui128 type is CHAR, value: 15324355
|
|
ui256 type is CHAR, value: 41345135123432
|
|
f32 type is FLOAT, value: -0.796896
|
|
f64 type is DOUBLE, value: -0.113259
|
|
b type is TINYINT, value: true
|
|
Row #2
|
|
i8 type is TINYINT, value: 127
|
|
i16 type is SMALLINT, value: 32767
|
|
i32 type is INT, value: 2147483647
|
|
i64 type is BIGINT, value: 9223372036854775807
|
|
i128 type is CHAR, value: 170141183460469231731687303715884105727
|
|
i256 type is CHAR, value: 57896044618658097711785492504343953926634992332820282019728792003956564819967
|
|
ui8 type is TINYINT, value: 255
|
|
ui16 type is SMALLINT, value: 65535
|
|
ui32 type is INT, value: 4294967295
|
|
ui64 type is BIGINT, value: 18446744073709551615
|
|
ui128 type is CHAR, value: 340282366920938463463374607431768211455
|
|
ui256 type is CHAR, value: 115792089237316195423570985008687907853269984665640564039457584007913129639935
|
|
f32 type is FLOAT, value: 1.234000
|
|
f64 type is DOUBLE, value: 3.352451
|
|
b type is TINYINT, value: false
|
|
|
|
### testStringTypes
|
|
Row #1
|
|
s type is CHAR, value: 42
|
|
sn type is CHAR, value: ᴺᵁᴸᴸ
|
|
lc type is CHAR, value: test
|
|
nlc type is CHAR, value: ᴺᵁᴸᴸ
|
|
Row #2
|
|
s type is CHAR, value: foo
|
|
sn type is CHAR, value: bar
|
|
lc type is CHAR, value: qaz
|
|
nlc type is CHAR, value: qux
|
|
|
|
### testLowCardinalityAndNullableTypes
|
|
Row #1
|
|
ilc type is INT, value: -54
|
|
dlc type is DATE, value: 1970-01-01
|
|
ni type is INT, value: 144
|
|
Row #2
|
|
ilc type is INT, value: 42
|
|
dlc type is DATE, value: 2011-02-05
|
|
ni type is INT, value: 0
|
|
|
|
### testDecimalTypes
|
|
Row #1
|
|
d32 type is DECIMAL, value: -1.55
|
|
d64 type is DECIMAL, value: 6.03
|
|
d128_native type is DECIMAL, value: 5
|
|
d128_text type is CHAR, value: -1224124.23423
|
|
d256 type is CHAR, value: -54342.3
|
|
Row #2
|
|
d32 type is DECIMAL, value: 1234567.89
|
|
d64 type is DECIMAL, value: 123456789123456.789
|
|
d128_native type is DECIMAL, value: 12345678912345678912.1234567891
|
|
d128_text type is CHAR, value: 1234567.8912345678912345678911234567891
|
|
d256 type is CHAR, value: 12345678912345678912345678911234567891234567891234567891.12345678911234567891
|
|
|
|
### testMiscTypes
|
|
Row #1
|
|
a type is CHAR, value: ['foo','bar']
|
|
u type is CHAR, value: 5da5038d-788f-48c6-b510-babb41c538d3
|
|
t type is CHAR, value: (42,'qaz')
|
|
m type is CHAR, value: {'qux':144,'text':255}
|
|
|
|
### testDateTypes
|
|
Row #1
|
|
d type is DATE, value: 1970-01-01
|
|
d32 type is DATE, value: 1900-01-01
|
|
dt type is TIMESTAMP, value: 1970-01-01 00:00:00.0
|
|
dt64_3 type is TIMESTAMP, value: 1900-01-01 00:00:00.001
|
|
dt64_6 type is TIMESTAMP, value: 1900-01-01 00:00:00.000001
|
|
dt64_9 type is TIMESTAMP, value: 1900-01-01 00:00:00.0
|
|
Row #2
|
|
d type is DATE, value: 2149-06-06
|
|
d32 type is DATE, value: 2178-04-16
|
|
dt type is TIMESTAMP, value: 2106-02-07 06:28:15.0
|
|
dt64_3 type is TIMESTAMP, value: 2106-02-07 06:28:15.123
|
|
dt64_6 type is TIMESTAMP, value: 2106-02-07 06:28:15.123456
|
|
dt64_9 type is TIMESTAMP, value: 2106-02-07 06:28:15.123456
|
|
|
|
### testUnusualDateTime64Scales
|
|
Row #1
|
|
dt64_0 type is TIMESTAMP, value: 2022-04-13 03:17:45.0
|
|
dt64_1 type is TIMESTAMP, value: 2022-04-13 03:17:45.1
|
|
dt64_2 type is TIMESTAMP, value: 2022-04-13 03:17:45.12
|
|
dt64_4 type is TIMESTAMP, value: 2022-04-13 03:17:45.1234
|
|
dt64_5 type is TIMESTAMP, value: 2022-04-13 03:17:45.12345
|
|
dt64_7 type is TIMESTAMP, value: 2022-04-13 03:17:45.123456
|
|
dt64_8 type is TIMESTAMP, value: 2022-04-13 03:17:45.123456
|
|
Row #2
|
|
dt64_0 type is TIMESTAMP, value: 2022-04-13 03:17:45.0
|
|
dt64_1 type is TIMESTAMP, value: 2022-04-13 03:17:45.1
|
|
dt64_2 type is TIMESTAMP, value: 2022-04-13 03:17:45.01
|
|
dt64_4 type is TIMESTAMP, value: 2022-04-13 03:17:45.0001
|
|
dt64_5 type is TIMESTAMP, value: 2022-04-13 03:17:45.00001
|
|
dt64_7 type is TIMESTAMP, value: 2022-04-13 03:17:45.0
|
|
dt64_8 type is TIMESTAMP, value: 2022-04-13 03:17:45.0
|
|
|
|
### testDateTimeTimezones
|
|
Row #1
|
|
dt type is TIMESTAMP, value: 1970-01-01 01:00:00.0
|
|
dt64_3 type is TIMESTAMP, value: 1969-12-31 16:00:00.0
|
|
Row #2
|
|
dt type is TIMESTAMP, value: 2022-09-04 20:31:05.0
|
|
dt64_3 type is TIMESTAMP, value: 2022-09-04 20:31:05.022
|
|
|
|
### testSuspiciousNullableLowCardinalityTypes
|
|
Row #1
|
|
f type is FLOAT, value: 1.0
|
|
d type is DATE, value: 2022-04-15
|
|
dt type is TIMESTAMP, value: 2021-06-04 13:55:11.0
|
|
Row #2
|
|
f type is FLOAT, value: 3.14
|
|
d type is DATE, value: 1970-01-01
|
|
dt type is TIMESTAMP, value: 1970-01-01 00:00:00.0
|
|
|