ClickHouse/tests/queries/0_stateless/02842_filesystem_cache_validate_path.sql

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

46 lines
1.4 KiB
MySQL
Raw Normal View History

2023-09-28 14:28:57 +00:00
-- Tags: no-fasttest, no-replicated-database
2023-08-07 15:38:30 +00:00
DROP TABLE IF EXISTS test;
DROP TABLE IF EXISTS test_1;
DROP TABLE IF EXISTS test_2;
CREATE TABLE test (a Int32)
ENGINE = MergeTree()
ORDER BY tuple()
SETTINGS disk = disk(type = cache,
max_size = '1Mi',
path = '/kek',
disk = 'local_disk'); -- {serverError BAD_ARGUMENTS}
CREATE TABLE test (a Int32)
ENGINE = MergeTree()
ORDER BY tuple()
SETTINGS disk = disk(type = cache,
max_size = '1Mi',
2023-08-08 10:03:01 +00:00
path = '/var/lib/clickhouse/filesystem_caches/../kek',
2023-08-07 15:38:30 +00:00
disk = 'local_disk'); -- {serverError BAD_ARGUMENTS}
CREATE TABLE test (a Int32)
ENGINE = MergeTree()
ORDER BY tuple()
SETTINGS disk = disk(type = cache,
max_size = '1Mi',
path = '../kek',
disk = 'local_disk'); -- {serverError BAD_ARGUMENTS}
CREATE TABLE test_1 (a Int32)
ENGINE = MergeTree()
ORDER BY tuple()
SETTINGS disk = disk(type = cache,
max_size = '1Mi',
2023-08-08 10:03:01 +00:00
path = '/var/lib/clickhouse/filesystem_caches/kek',
2023-08-07 15:38:30 +00:00
disk = 'local_disk');
CREATE TABLE test_2 (a Int32)
ENGINE = MergeTree()
ORDER BY tuple()
SETTINGS disk = disk(type = cache,
max_size = '1Mi',
2023-09-26 14:07:29 +00:00
path = 'kek2',
2023-08-07 15:38:30 +00:00
disk = 'local_disk');