mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Use sql file to test changes
This commit is contained in:
parent
0bad4b4a05
commit
bf2654e093
@ -1,3 +1,7 @@
|
||||
ok
|
||||
ok
|
||||
ok
|
||||
11
|
||||
|
||||
11
|
||||
12
|
||||
12
|
||||
13
|
||||
13
|
||||
|
@ -1,15 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
EXCEPTION_SUCCESS_TEXT=ok
|
||||
|
||||
# Must throw an exception
|
||||
EXCEPTION_TEXT="WITH TOTALS, ROLLUP or CUBE are not supported without aggregation"
|
||||
$CLICKHOUSE_CLIENT --query="SELECT 1 AS id, 'hello' AS s WITH TOTALS" 2>&1 \
|
||||
| grep -q "$EXCEPTION_TEXT" && echo "$EXCEPTION_SUCCESS_TEXT" || echo "Did not throw an exception"
|
||||
$CLICKHOUSE_CLIENT --query="SELECT 1 AS id, 'hello' AS s WITH ROLLUP" 2>&1 \
|
||||
| grep -q "$EXCEPTION_TEXT" && echo "$EXCEPTION_SUCCESS_TEXT" || echo "Did not throw an exception"
|
||||
$CLICKHOUSE_CLIENT --query="SELECT 1 AS id, 'hello' AS s WITH CUBE" 2>&1 \
|
||||
| grep -q "$EXCEPTION_TEXT" && echo "$EXCEPTION_SUCCESS_TEXT" || echo "Did not throw an exception"
|
6
dbms/tests/queries/0_stateless/01013_totals_without_aggregation.sql
Executable file
6
dbms/tests/queries/0_stateless/01013_totals_without_aggregation.sql
Executable file
@ -0,0 +1,6 @@
|
||||
SELECT 11 AS n GROUP BY n WITH TOTALS;
|
||||
SELECT 12 AS n GROUP BY n WITH ROLLUP;
|
||||
SELECT 13 AS n GROUP BY n WITH CUBE;
|
||||
SELECT 1 AS n WITH TOTALS; -- { serverError 49 }
|
||||
SELECT 1 AS n WITH ROLLUP; -- { serverError 49 }
|
||||
SELECT 1 AS n WITH CUBE; -- { serverError 49 }
|
Loading…
Reference in New Issue
Block a user