2024-07-06 00:16:51 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
# shellcheck source=../shell_config.sh
|
|
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
|
2024-07-29 20:06:55 +00:00
|
|
|
${CLICKHOUSE_CLIENT} "
|
2024-07-06 00:16:51 +00:00
|
|
|
DROP TABLE IF EXISTS test;
|
|
|
|
CREATE TABLE test (s String) ORDER BY ();
|
|
|
|
INSERT INTO test VALUES ('Hello, world!');
|
|
|
|
"
|
|
|
|
|
2024-07-29 20:06:55 +00:00
|
|
|
${CLICKHOUSE_LOCAL} "
|
2024-07-06 00:16:51 +00:00
|
|
|
CREATE NAMED COLLECTION mydb AS host = '${CLICKHOUSE_HOST}', port = ${CLICKHOUSE_PORT_TCP}, user = 'default', password = '', db = '${CLICKHOUSE_DATABASE}';
|
|
|
|
SELECT * FROM remote(mydb, table = 'test');
|
2024-07-11 19:51:09 +00:00
|
|
|
" 2>&1 | grep --text -F -v "ASan doesn't fully support makecontext/swapcontext functions"
|
2024-07-06 00:16:51 +00:00
|
|
|
|
2024-07-29 20:06:55 +00:00
|
|
|
${CLICKHOUSE_CLIENT} "
|
2024-07-06 00:16:51 +00:00
|
|
|
DROP TABLE test;
|
|
|
|
"
|