mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 22:12:21 +00:00
19 lines
566 B
Bash
Executable File
19 lines
566 B
Bash
Executable File
#!/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;
|
|
"
|