mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
24 lines
693 B
MySQL
24 lines
693 B
MySQL
|
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;
|