2017-12-25 01:38:51 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
. $CURDIR/../shell_config.sh
|
|
|
|
|
|
|
|
$CLICKHOUSE_CLIENT -n --ignore-error --query="
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS test1;
|
|
|
|
DROP TABLE IF EXISTS test2;
|
|
|
|
DROP TABLE IF EXISTS test3;
|
2017-12-25 01:38:51 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
CREATE TABLE test1 ( id String ) ENGINE = StripeLog;
|
|
|
|
CREATE TABLE test2 ( id String ) ENGINE = StripeLog;
|
|
|
|
INSERT INTO test2 VALUES ('a');
|
|
|
|
CREATE TABLE test3 ( id String, name String ) ENGINE = StripeLog;
|
|
|
|
INSERT INTO test3 VALUES ('a', 'aaa');
|
2017-12-25 01:38:51 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
INSERT INTO test1 SELECT id, name FROM test2 ANY INNER JOIN test3 USING (id);
|
|
|
|
INSERT INTO test1 SELECT id, name FROM test2 ANY LEFT OUTER JOIN test3 USING (id);
|
2017-12-25 01:38:51 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE test1;
|
|
|
|
DROP TABLE test2;
|
|
|
|
DROP TABLE test3;
|
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";
|