Merge pull request #38488 from azat/fix-02335_column_ttl_expired_column_optimization

tests: cleanup tmp data in 02335_column_ttl_expired_column_optimization
This commit is contained in:
Alexander Tokmakov 2022-06-29 12:05:23 +03:00 committed by GitHub
commit 2aa6c66a2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,9 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
$CLICKHOUSE_LOCAL --path "$CLICKHOUSE_TEST_UNIQUE_NAME" -nm -q "
data_path="$CLICKHOUSE_TMP/local"
$CLICKHOUSE_LOCAL --path "$data_path" -nm -q "
create table ttl_02335 (
date Date,
key Int,
@ -25,5 +27,5 @@ $CLICKHOUSE_LOCAL --path "$CLICKHOUSE_TEST_UNIQUE_NAME" -nm -q "
optimize table ttl_02335 final;
"
test -f "$CLICKHOUSE_TEST_UNIQUE_NAME"/data/_local/ttl_02335/all_1_1_3/value.bin && echo "[FAIL] value column should not exist"
exit 0
test -f "$data_path"/data/_local/ttl_02335/all_1_1_3/value.bin && echo "[FAIL] value column should not exist"
rm -fr "${data_path:?}"