ClickHouse/tests/queries/0_stateless/02714_local_object_storage.sql

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

29 lines
880 B
MySQL
Raw Normal View History

2023-04-19 14:57:49 +00:00
SET min_bytes_to_use_direct_io='1Gi'; -- It does not work (fixme)
2023-04-20 10:29:12 +00:00
SET local_filesystem_read_method='pread'; -- ui_uring local_fs_method does not work here (fixme)
2023-04-19 14:57:49 +00:00
2023-04-14 17:28:04 +00:00
DROP TABLE IF EXISTS test;
CREATE TABLE test (a Int32, b String)
ENGINE = MergeTree() ORDER BY tuple()
SETTINGS disk = disk(
type = 'local_blob_storage',
path = '/var/lib/clickhouse/disks/${CLICKHOUSE_TEST_UNIQUE_NAME}/');
INSERT INTO test SELECT 1, 'test';
SELECT * FROM test;
DROP TABLE test SYNC;
CREATE TABLE test (a Int32, b String)
ENGINE = MergeTree() ORDER BY tuple()
SETTINGS disk = disk(
type = 'cache',
max_size = '10Mi',
path = '/var/lib/clickhouse/caches/${CLICKHOUSE_TEST_UNIQUE_NAME}/',
disk = disk(type='local_blob_storage', path='/var/lib/clickhouse/disks/${CLICKHOUSE_TEST_UNIQUE_NAME}/'));
INSERT INTO test SELECT 1, 'test';
SELECT * FROM test;
2023-04-22 15:08:28 +00:00
DROP TABLE test SYNC;