mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 08:52:06 +00:00
30 lines
2.8 KiB
Plaintext
30 lines
2.8 KiB
Plaintext
CREATE TABLE default.table_02184\n(\n `x` UInt8\n)\nENGINE = Log
|
|
CREATE TABLE default.table_02184\n(\n `x` UInt8\n)\nENGINE = MergeTree\nPRIMARY KEY x\nORDER BY x\nSETTINGS index_granularity = 8192
|
|
CREATE TABLE default.test_optimize_exception\n(\n `date` Date\n)\nENGINE = MergeTree\nPARTITION BY toYYYYMM(date)\nORDER BY date\nSETTINGS index_granularity = 8192
|
|
CREATE TABLE default.table_02184\n(\n `x` UInt8\n)\nENGINE = MergeTree\nORDER BY x\nSETTINGS index_granularity = 8192
|
|
CREATE TABLE default.table_02184\n(\n `x` UInt8\n)\nENGINE = MergeTree\nPRIMARY KEY x\nORDER BY x\nSETTINGS index_granularity = 8192
|
|
CREATE TABLE default.numbers1\n(\n `number` UInt64\n)\nENGINE = Memory
|
|
4.5
|
|
45
|
|
CREATE TABLE default.numbers2\n(\n `number` UInt64\n)\nENGINE = MergeTree\nORDER BY intHash32(number)\nSAMPLE BY intHash32(number)\nSETTINGS index_granularity = 8192
|
|
45
|
|
CREATE TABLE default.numbers3\n(\n `number` UInt64\n)\nENGINE = Log
|
|
CREATE MATERIALIZED VIEW default.test_view_filtered\n(\n `EventDate` Date,\n `CounterID` UInt32\n)\nENGINE = Memory AS\nSELECT\n CounterID,\n EventDate\nFROM default.test_table\nWHERE EventDate < \'2013-01-01\'
|
|
2014-01-02 0 0 1969-12-31 16:00:00 2014-01-02 03:04:06
|
|
1 2014-01-01 19:04:06
|
|
CREATE TABLE default.t1\n(\n `Rows` UInt64,\n `MaxHitTime` DateTime(\'UTC\')\n)\nENGINE = MergeTree\nORDER BY Rows\nSETTINGS index_granularity = 8192
|
|
CREATE TABLE default.t2\n(\n `Rows` UInt64,\n `MaxHitTime` DateTime(\'UTC\')\n)\nENGINE = Memory
|
|
CREATE TABLE default.mt\n(\n `a` UInt64,\n `b` Nullable(String),\n INDEX b_index b TYPE set(123) GRANULARITY 1\n)\nENGINE = MergeTree\nPRIMARY KEY (a, coalesce(b, \'test\'))\nORDER BY (a, coalesce(b, \'test\'))\nSETTINGS index_granularity = 8192
|
|
CREATE TABLE default.mt2\n(\n `a` UInt64,\n `b` Nullable(String),\n INDEX b_index b TYPE set(123) GRANULARITY 1\n)\nENGINE = MergeTree\nPRIMARY KEY (a, coalesce(b, \'test\'))\nORDER BY (a, coalesce(b, \'test\'))\nSETTINGS index_granularity = 8192
|
|
CREATE TEMPORARY TABLE tmp\n(\n `n` Int32\n)\nENGINE = Memory
|
|
CREATE TABLE default.log\n(\n `n` Int32\n)\nENGINE = Log
|
|
CREATE TABLE default.log1\n(\n `n` Int32\n)\nENGINE = Log
|
|
CREATE TABLE default.mem\n(\n `n` Int32\n)\nENGINE = Memory
|
|
CREATE TABLE default.mt\n(\n `n` UInt8\n)\nENGINE = MergeTree\nORDER BY n\nSETTINGS index_granularity = 8192
|
|
CREATE TABLE default.mem\n(\n `n` UInt8\n)\nENGINE = Memory
|
|
CREATE TABLE default.val\n(\n `n` Int32\n) AS values(\'n int\', 1, 2)
|
|
CREATE TABLE default.val2\n(\n `n` Int32\n) AS values(\'n int\', 1, 2)
|
|
CREATE TABLE default.log\n(\n `n` Int32\n)\nENGINE = Log
|
|
CREATE TABLE default.kek\n(\n `n` Int32\n)\nENGINE = Memory
|
|
CREATE TABLE default.lol\n(\n `n` Int32\n)\nENGINE = MergeTree\nORDER BY n\nSETTINGS min_bytes_for_wide_part = 123, index_granularity = 8192
|