mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
fix tests
This commit is contained in:
parent
7ee4934558
commit
8ff7a1c609
@ -1,2 +1,2 @@
|
||||
test_02480_table Memory
|
||||
test_02480_table MergeTree
|
||||
test_02480_view View
|
||||
|
18
tests/queries/0_stateless/02480_tets_show_full.sh
Executable file
18
tests/queries/0_stateless/02480_tets_show_full.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CURDIR"/../shell_config.sh
|
||||
|
||||
|
||||
database=$($CLICKHOUSE_CLIENT -q 'SELECT currentDatabase()')
|
||||
|
||||
$CLICKHOUSE_CLIENT -nm -q "
|
||||
DROP TABLE IF EXISTS test_02480_table;
|
||||
DROP VIEW IF EXISTS test_02480_view;
|
||||
CREATE TABLE test_02480_table (id Int64) ENGINE=MergeTree ORDER BY id;
|
||||
CREATE VIEW test_02480_view AS SELECT * FROM test_02480_table;
|
||||
SHOW FULL TABLES FROM $database LIKE '%';
|
||||
DROP TABLE IF EXISTS test_02480_table;
|
||||
DROP VIEW IF EXISTS test_02480_view;
|
||||
"
|
@ -1,7 +0,0 @@
|
||||
DROP TABLE IF EXISTS test_02480_table;
|
||||
DROP VIEW IF EXISTS test_02480_view;
|
||||
CREATE TABLE test_02480_table (id Int64) ENGINE=Memory();
|
||||
CREATE VIEW test_02480_view AS SELECT * FROM test_02480_table;
|
||||
SHOW FULL TABLES FROM `default` LIKE '%';
|
||||
DROP TABLE IF EXISTS test_02480_table;
|
||||
DROP VIEW IF EXISTS test_02480_view;
|
Loading…
Reference in New Issue
Block a user