mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
Added queries-file parameter. Updated tests.
This commit is contained in:
parent
963ee5211b
commit
ae56223611
@ -1,8 +1,6 @@
|
||||
Code: 81. DB::Exception: Received from localhost:9000. DB::Exception: Database `test` doesn't exist.
|
||||
|
||||
Code: 81. DB::Exception: Received from localhost:9000. DB::Exception: Database `test` doesn't exist.
|
||||
|
||||
Code: 36. DB::Exception: Specify either `query` or `queries-file` option
|
||||
|
||||
1
|
||||
1
|
||||
2
|
||||
3
|
||||
1 2
|
||||
3 4
|
||||
|
@ -13,11 +13,9 @@ SELECT * FROM 01523_test;
|
||||
DROP TABLE 01523_test;" > 01523_client_local_queries_file_parameter_tmp.sql
|
||||
$CLICKHOUSE_CLIENT --queries-file=01523_client_local_queries_file_parameter_tmp.sql 2>&1
|
||||
|
||||
$CLICKHOUSE_CLIENT --queries='t' --query='t' 2>&1
|
||||
|
||||
echo "CREATE TABLE table (a Int64, b Int64) ENGINE = File(CSV, stdin);
|
||||
SELECT a, b FROM table;
|
||||
DROP TABLE table;" > 01523_client_local_queries_file_parameter_tmp.sql
|
||||
echo "CREATE TABLE 01523_test (a Int64, b Int64) ENGINE = File(CSV, stdin);
|
||||
SELECT a, b FROM 01523_test;
|
||||
DROP TABLE 01523_test;" > 01523_client_local_queries_file_parameter_tmp.sql
|
||||
|
||||
echo -e "1,2\n3,4" | $CLICKHOUSE_LOCAL --queries-file=01523_client_local_queries_file_parameter_tmp.sql 2>&1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user