mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
Add test
This commit is contained in:
parent
a7c60aa282
commit
09a7b9bc17
@ -0,0 +1,3 @@
|
||||
1 []
|
||||
1 []
|
||||
[]
|
26
tests/queries/0_stateless/02731_zero_objects_in_metadata.sh
Executable file
26
tests/queries/0_stateless/02731_zero_objects_in_metadata.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CURDIR"/../shell_config.sh
|
||||
|
||||
${CLICKHOUSE_CLIENT} -n --query "
|
||||
DROP TABLE IF EXISTS test;
|
||||
CREATE TABLE test (id Int32, empty Array(Int32))
|
||||
ENGINE=MergeTree ORDER BY id
|
||||
SETTINGS min_rows_for_wide_part=0, min_bytes_for_wide_part=0, storage_policy='s3';
|
||||
|
||||
INSERT INTO test (id) VALUES (1);
|
||||
SELECT * FROM test;
|
||||
"
|
||||
|
||||
${CLICKHOUSE_CLIENT} -n --query "
|
||||
BACKUP TABLE test TO Disk('backups', 'test_s3_backup');
|
||||
DROP TABLE test;
|
||||
RESTORE TABLE test FROM Disk('backups', 'test_s3_backup');
|
||||
" &>/dev/null
|
||||
|
||||
${CLICKHOUSE_CLIENT} -n --query "
|
||||
SELECT * FROM test;
|
||||
SELECT empty FROM test;
|
||||
"
|
Loading…
Reference in New Issue
Block a user