2017-12-25 01:38:51 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
2020-12-28 11:46:53 +00:00
|
|
|
# shellcheck source=../shell_config.sh
|
2020-08-01 00:51:12 +00:00
|
|
|
. "$CURDIR"/../shell_config.sh
|
2017-12-25 01:38:51 +00:00
|
|
|
|
|
|
|
$CLICKHOUSE_CLIENT -n --ignore-error --query="
|
2019-06-03 17:36:27 +00:00
|
|
|
DROP TABLE IF EXISTS test1_00550;
|
|
|
|
DROP TABLE IF EXISTS test2_00550;
|
|
|
|
DROP TABLE IF EXISTS test3_00550;
|
2017-12-25 01:38:51 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
CREATE TABLE test1_00550 ( id String ) ENGINE = StripeLog;
|
|
|
|
CREATE TABLE test2_00550 ( id String ) ENGINE = StripeLog;
|
|
|
|
INSERT INTO test2_00550 VALUES ('a');
|
|
|
|
CREATE TABLE test3_00550 ( id String, name String ) ENGINE = StripeLog;
|
|
|
|
INSERT INTO test3_00550 VALUES ('a', 'aaa');
|
2017-12-25 01:38:51 +00:00
|
|
|
|
2019-08-08 14:20:25 +00:00
|
|
|
INSERT INTO test1_00550 SELECT id, name FROM test2_00550 ANY INNER JOIN test3_00550 USING (id) SETTINGS any_join_distinct_right_table_keys=1;
|
2019-06-03 17:36:27 +00:00
|
|
|
INSERT INTO test1_00550 SELECT id, name FROM test2_00550 ANY LEFT OUTER JOIN test3_00550 USING (id);
|
2017-12-25 01:38:51 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
DROP TABLE test1_00550;
|
|
|
|
DROP TABLE test2_00550;
|
|
|
|
DROP TABLE test3_00550;
|
2018-06-08 19:50:15 +00:00
|
|
|
" --server_logs_file=/dev/null 2>&1 | grep -F "Number of columns doesn't match" | wc -l
|
2017-12-25 01:38:51 +00:00
|
|
|
|
|
|
|
$CLICKHOUSE_CLIENT --query="SELECT 1";
|