2022-12-03 22:02:37 +00:00
|
|
|
#!/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()')
|
|
|
|
|
2024-08-07 10:55:16 +00:00
|
|
|
$CLICKHOUSE_CLIENT -m -q "
|
2022-12-03 22:02:37 +00:00
|
|
|
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;
|
|
|
|
"
|