dbms: added tests [#METR-17491].

This commit is contained in:
Alexey Milovidov 2015-07-27 19:57:02 +03:00
parent a467a2c880
commit fc49f1ab55
4 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,11 @@
1
1
0
0
1
1
4 1 1

View File

@ -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;

View 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"