Skip to content

Commit 29eee06

Browse files
additional tests
1 parent 0d07b81 commit 29eee06

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
2 (-9,0)
22
2 (-8,1)
3+
2 {1:1}
4+
2 {1:2}
5+
(1,2)
6+
(3,4)
7+
(1,2)
8+
(1,2)
9+
1 ('dete','ok') ('dete','ok')
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
set enable_analyzer=1;
22

3-
SELECT count(), plus((-9, 0), (number, number)) AS k FROM remote('127.0.0.{3,2}', numbers(2)) GROUP BY k;
3+
DROP TABLE IF EXISTS test, src;
4+
5+
SELECT count(), plus((-9, 0), (number, number)) AS k FROM remote('127.0.0.{3,2}', numbers(2)) GROUP BY k ORDER BY k;
6+
SELECT count(), mapAdd(map(1::UInt128, 1), map(1::UInt128 ,number)) AS k FROM remote('127.0.0.{3,2}', numbers(2)) GROUP BY k ORDER BY k;
7+
8+
CREATE TABLE test (s String) ORDER BY ();
9+
INSERT INTO test VALUES ('a'), ('b');
10+
SELECT transform(s, ['a', 'b'], [(1, 2), (3, 4)], (0, 0)) AS k FROM test ORDER BY k;
11+
SELECT s != '' ? (1,2) : (0,0) AS k FROM test ORDER BY k;
12+
13+
CREATE TABLE src (id UInt32, type String, data String) ENGINE=MergeTree ORDER BY tuple();
14+
INSERT INTO src VALUES (1, 'ok', 'data');
15+
SELECT id, tuple(replaceAll(data, 'a', 'e') AS col_a, type) AS a, tuple(replaceAll(data, 'a', 'e') AS col_b, type) AS b FROM src;
16+
17+
DROP TABLE IF EXISTS test, src;

0 commit comments

Comments
 (0)