mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Added test #1683
This commit is contained in:
parent
a71b04e377
commit
4e2764c2af
@ -0,0 +1,2 @@
|
||||
2
|
||||
1
|
25
dbms/tests/queries/0_stateless/00550_join_insert_select.sh
Executable file
25
dbms/tests/queries/0_stateless/00550_join_insert_select.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
$CLICKHOUSE_CLIENT -n --ignore-error --query="
|
||||
DROP TABLE IF EXISTS test.test1;
|
||||
DROP TABLE IF EXISTS test.test2;
|
||||
DROP TABLE IF EXISTS test.test3;
|
||||
|
||||
CREATE TABLE test.test1 ( id String ) ENGINE = StripeLog;
|
||||
CREATE TABLE test.test2 ( id String ) ENGINE = StripeLog;
|
||||
INSERT INTO test.test2 VALUES ('a');
|
||||
CREATE TABLE test.test3 ( id String, name String ) ENGINE = StripeLog;
|
||||
INSERT INTO test.test3 VALUES ('a', 'aaa');
|
||||
|
||||
INSERT INTO test.test1 SELECT id, name FROM test.test2 ANY INNER JOIN test.test3 USING (id);
|
||||
INSERT INTO test.test1 SELECT id, name FROM test.test2 ANY LEFT OUTER JOIN test.test3 USING (id);
|
||||
|
||||
DROP TABLE test.test1;
|
||||
DROP TABLE test.test2;
|
||||
DROP TABLE test.test3;
|
||||
" 2>&1 | grep -F "Number of columns in INSERT SELECT doesn't match" | wc -l
|
||||
|
||||
$CLICKHOUSE_CLIENT --query="SELECT 1";
|
Loading…
Reference in New Issue
Block a user