mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
dbms: added tests [#METR-17491].
This commit is contained in:
parent
a467a2c880
commit
fc49f1ab55
@ -0,0 +1,11 @@
|
||||
|
||||
1
|
||||
1
|
||||
|
||||
0
|
||||
|
||||
0
|
||||
|
||||
1
|
||||
1
|
||||
4 1 1
|
@ -0,0 +1,11 @@
|
||||
DROP TABLE IF EXISTS test.test;
|
||||
CREATE TABLE test.test (x UInt8) ENGINE = Log;
|
||||
|
||||
INSERT INTO test.test SELECT 1 AS x;
|
||||
INSERT INTO test.test SELECT 1 AS x SETTINGS extremes = 1;
|
||||
INSERT INTO test.test SELECT 1 AS x GROUP BY 1 WITH TOTALS;
|
||||
INSERT INTO test.test SELECT 1 AS x GROUP BY 1 WITH TOTALS SETTINGS extremes = 1;
|
||||
|
||||
SELECT count(), min(x), max(x) FROM test.test;
|
||||
|
||||
DROP TABLE test.test;
|
@ -0,0 +1,3 @@
|
||||
|
||||
1
|
||||
1
|
6
dbms/tests/queries/0_stateless/00210_insert_select_extremes_http.sh
Executable file
6
dbms/tests/queries/0_stateless/00210_insert_select_extremes_http.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
curl http://localhost:8123/?extremes=1 -d @- <<< "DROP TABLE IF EXISTS test.test"
|
||||
curl http://localhost:8123/?extremes=1 -d @- <<< "CREATE TABLE test.test (x UInt8) ENGINE = Log"
|
||||
curl http://localhost:8123/?extremes=1 -d @- <<< "INSERT INTO test.test SELECT 1 AS x"
|
||||
curl http://localhost:8123/?extremes=1 -d @- <<< "DROP TABLE test.test"
|
Loading…
Reference in New Issue
Block a user