mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
rename tests
This commit is contained in:
parent
4e103b94f0
commit
94babf1c8b
@ -1,24 +1,24 @@
|
||||
SELECT tupleToNameValuePairs(tuple(1, 2, 3));
|
||||
|
||||
DROP TABLE IF EXISTS test02007;
|
||||
CREATE TABLE test02007 (
|
||||
DROP TABLE IF EXISTS test02008;
|
||||
CREATE TABLE test02008 (
|
||||
col Tuple(
|
||||
a Tuple(key1 int, key2 int),
|
||||
b Tuple(key1 int, key3 int)
|
||||
)
|
||||
) ENGINE=Memory();
|
||||
INSERT INTO test02007 VALUES (tuple(tuple(1, 2), tuple(3, 4)));
|
||||
INSERT INTO test02007 VALUES (tuple(tuple(5, 6), tuple(7, 8)));
|
||||
SELECT tupleToNameValuePairs(col) FROM test02007 ORDER BY col;
|
||||
INSERT INTO test02008 VALUES (tuple(tuple(1, 2), tuple(3, 4)));
|
||||
INSERT INTO test02008 VALUES (tuple(tuple(5, 6), tuple(7, 8)));
|
||||
SELECT tupleToNameValuePairs(col) FROM test02008 ORDER BY col;
|
||||
|
||||
DROP TABLE IF EXISTS test02007;
|
||||
CREATE TABLE test02007 (
|
||||
DROP TABLE IF EXISTS test02008;
|
||||
CREATE TABLE test02008 (
|
||||
col Tuple(CPU double, Memory double, Disk double)
|
||||
) ENGINE=Memory();
|
||||
INSERT INTO test02007 VALUES (tuple(3.3, 5.5, 6.6));
|
||||
SELECT untuple(arrayJoin(tupleToNameValuePairs(col))) from test02007;
|
||||
INSERT INTO test02008 VALUES (tuple(3.3, 5.5, 6.6));
|
||||
SELECT untuple(arrayJoin(tupleToNameValuePairs(col))) from test02008;
|
||||
|
||||
DROP TABLE IF EXISTS test02007;
|
||||
DROP TABLE IF EXISTS test02008;
|
||||
SELECT tupleToNameValuePairs(tuple(1, 1.3)); -- { serverError 43; }
|
||||
SELECT tupleToNameValuePairs(tuple(1, [1,2])); -- { serverError 43; }
|
||||
SELECT tupleToNameValuePairs(tuple(1, 'a')); -- { serverError 43; }
|
Loading…
Reference in New Issue
Block a user