mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
Fix bad test
This commit is contained in:
parent
1f69f8c475
commit
89d56f1668
@ -32,7 +32,7 @@ Map(UUID, UInt16)
|
||||
{'00001192-0000-4000-8000-000000000001':1,'00001192-0000-4000-7000-000000000001':2}
|
||||
0 2 1
|
||||
Map(Int128, String)
|
||||
{-1:'a',0:'b',1234567898765432193024000:'c',-1234567898765432193024000:'d'}
|
||||
{-1:'a',0:'b',1234567898765432123456789:'c',-1234567898765432123456789:'d'}
|
||||
a b c d
|
||||
|
||||
a
|
||||
|
@ -65,15 +65,15 @@ CREATE TABLE table_map_with_key_integer (d DATE, m Map(Int128, String))
|
||||
ENGINE = MergeTree() ORDER BY d;
|
||||
|
||||
|
||||
INSERT INTO table_map_with_key_integer SELECT '2020-01-01', map(-1, 'a', 0, 'b', toInt128(1234567898765432123456789), 'c', toInt128(-1234567898765432123456789), 'd');
|
||||
INSERT INTO table_map_with_key_integer SELECT '2020-01-01', map(-1, 'a', 0, 'b', toInt128('1234567898765432123456789'), 'c', toInt128('-1234567898765432123456789'), 'd');
|
||||
|
||||
SELECT 'Map(Int128, String)';
|
||||
|
||||
SELECT m FROM table_map_with_key_integer;
|
||||
SELECT m[toInt128(-1)], m[toInt128(0)], m[toInt128(1234567898765432123456789)], m[toInt128(-1234567898765432123456789)] FROM table_map_with_key_integer;
|
||||
SELECT m[toInt128(-1)], m[toInt128(0)], m[toInt128('1234567898765432123456789')], m[toInt128('-1234567898765432123456789')] FROM table_map_with_key_integer;
|
||||
SELECT m[toInt128(number - 2)] FROM table_map_with_key_integer ARRAY JOIN [0, 1, 2, 3] AS number;
|
||||
|
||||
SELECT m[-1], m[0], m[toInt128(1234567898765432123456789)], m[toInt128(-1234567898765432123456789)] FROM table_map_with_key_integer;
|
||||
SELECT m[-1], m[0], m[toInt128('1234567898765432123456789')], m[toInt128('-1234567898765432123456789')] FROM table_map_with_key_integer;
|
||||
SELECT m[toUInt64(0)], m[toInt64(0)], m[toUInt8(0)], m[toUInt16(0)] FROM table_map_with_key_integer;
|
||||
|
||||
DROP TABLE IF EXISTS table_map_with_key_integer;
|
||||
|
Loading…
Reference in New Issue
Block a user