mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
Add a test
This commit is contained in:
parent
c7c77a3322
commit
e2885b1cfa
@ -0,0 +1 @@
|
||||
Hello, world!
|
20
tests/queries/0_stateless/03201_local_named_collections.sh
Executable file
20
tests/queries/0_stateless/03201_local_named_collections.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CURDIR"/../shell_config.sh
|
||||
|
||||
${CLICKHOUSE_CLIENT} --multiquery "
|
||||
DROP TABLE IF EXISTS test;
|
||||
CREATE TABLE test (s String) ORDER BY ();
|
||||
INSERT INTO test VALUES ('Hello, world!');
|
||||
"
|
||||
|
||||
${CLICKHOUSE_LOCAL} --multiquery "
|
||||
CREATE NAMED COLLECTION mydb AS host = '${CLICKHOUSE_HOST}', port = ${CLICKHOUSE_PORT_TCP}, user = 'default', password = '', db = '${CLICKHOUSE_DATABASE}';
|
||||
SELECT * FROM remote(mydb, table = 'test');
|
||||
"
|
||||
|
||||
${CLICKHOUSE_CLIENT} --multiquery "
|
||||
DROP TABLE test;
|
||||
"
|
Loading…
Reference in New Issue
Block a user