ClickHouse/tests/queries/0_stateless/02313_filesystem_cache_seeks.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.8 KiB
Bash
Raw Normal View History

2022-05-30 19:32:49 +00:00
#!/usr/bin/env bash
2022-08-02 12:27:45 +00:00
# Tags: long, no-fasttest, no-parallel, no-s3-storage, no-random-settings
2022-05-30 19:32:49 +00:00
# set -x
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
2022-12-29 20:16:07 +00:00
for STORAGE_POLICY in 's3_cache' 'local_cache' 's3_cache_multi'; do
echo "Using storage policy: $STORAGE_POLICY"
$CLICKHOUSE_CLIENT --query "SYSTEM DROP FILESYSTEM CACHE"
$CLICKHOUSE_CLIENT --query "DROP TABLE IF EXISTS test_02313"
$CLICKHOUSE_CLIENT --query "CREATE TABLE test_02313 (id Int32, val String)
ENGINE = MergeTree()
ORDER BY tuple()
SETTINGS storage_policy = '$STORAGE_POLICY'"
$CLICKHOUSE_CLIENT --enable_filesystem_cache_on_write_operations=0 -n --query "INSERT INTO test_02313
SELECT * FROM
generateRandom('id Int32, val String')
LIMIT 100000"
$CLICKHOUSE_CLIENT --query "SELECT * FROM test_02313 WHERE val LIKE concat('%', randomPrintableASCII(3), '%') FORMAT Null"
$CLICKHOUSE_CLIENT --query "SELECT * FROM test_02313 WHERE val LIKE concat('%', randomPrintableASCII(3), '%') FORMAT Null"
$CLICKHOUSE_CLIENT --query "SELECT * FROM test_02313 WHERE val LIKE concat('%', randomPrintableASCII(3), '%') FORMAT Null"
$CLICKHOUSE_CLIENT --query "SELECT * FROM test_02313 WHERE val LIKE concat('%', randomPrintableASCII(3), '%') FORMAT Null"
$CLICKHOUSE_CLIENT --query "SELECT * FROM test_02313 WHERE val LIKE concat('%', randomPrintableASCII(3), '%') FORMAT Null"
$CLICKHOUSE_CLIENT --query "SELECT * FROM test_02313 WHERE val LIKE concat('%', randomPrintableASCII(3), '%') FORMAT Null"
$CLICKHOUSE_CLIENT --query "SELECT * FROM test_02313 WHERE val LIKE concat('%', randomPrintableASCII(3), '%') FORMAT Null"
$CLICKHOUSE_CLIENT --query "DROP TABLE test_02313"
2022-05-30 19:32:49 +00:00
done