2020-04-08 08:18:35 +00:00
|
|
|
CREATE TABLE test.minmax_idx\n(\n `u64` UInt64, \n `i32` Int32, \n INDEX idx1 u64 * i32 TYPE minmax GRANULARITY 10, \n INDEX idx3 u64 - i32 TYPE minmax GRANULARITY 10, \n INDEX idx2 u64 + i32 TYPE minmax GRANULARITY 10\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/indices_alter1\', \'r1\')\nORDER BY u64\nSETTINGS index_granularity = 8192
|
|
|
|
CREATE TABLE test.minmax_idx_r\n(\n `u64` UInt64, \n `i32` Int32, \n INDEX idx1 u64 * i32 TYPE minmax GRANULARITY 10, \n INDEX idx3 u64 - i32 TYPE minmax GRANULARITY 10, \n INDEX idx2 u64 + i32 TYPE minmax GRANULARITY 10\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/indices_alter1\', \'r2\')\nORDER BY u64\nSETTINGS index_granularity = 8192
|
2019-01-17 09:16:39 +00:00
|
|
|
1 2
|
|
|
|
1 2
|
|
|
|
1 2
|
|
|
|
1 4
|
|
|
|
1 5
|
|
|
|
3 2
|
|
|
|
19 9
|
|
|
|
65 75
|
|
|
|
1 2
|
|
|
|
1 4
|
|
|
|
1 5
|
|
|
|
3 2
|
|
|
|
19 9
|
|
|
|
65 75
|
2020-04-08 08:18:35 +00:00
|
|
|
CREATE TABLE test.minmax_idx\n(\n `u64` UInt64, \n `i32` Int32, \n INDEX idx3 u64 - i32 TYPE minmax GRANULARITY 10, \n INDEX idx2 u64 + i32 TYPE minmax GRANULARITY 10\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/indices_alter1\', \'r1\')\nORDER BY u64\nSETTINGS index_granularity = 8192
|
|
|
|
CREATE TABLE test.minmax_idx_r\n(\n `u64` UInt64, \n `i32` Int32, \n INDEX idx3 u64 - i32 TYPE minmax GRANULARITY 10, \n INDEX idx2 u64 + i32 TYPE minmax GRANULARITY 10\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/indices_alter1\', \'r2\')\nORDER BY u64\nSETTINGS index_granularity = 8192
|
2019-01-17 09:16:39 +00:00
|
|
|
1 2
|
|
|
|
1 4
|
|
|
|
1 5
|
|
|
|
3 2
|
|
|
|
19 9
|
|
|
|
65 75
|
|
|
|
1 2
|
|
|
|
1 4
|
|
|
|
1 5
|
|
|
|
3 2
|
|
|
|
19 9
|
|
|
|
65 75
|
2020-04-08 08:18:35 +00:00
|
|
|
CREATE TABLE test.minmax_idx\n(\n `u64` UInt64, \n `i32` Int32\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/indices_alter1\', \'r1\')\nORDER BY u64\nSETTINGS index_granularity = 8192
|
|
|
|
CREATE TABLE test.minmax_idx_r\n(\n `u64` UInt64, \n `i32` Int32\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/indices_alter1\', \'r2\')\nORDER BY u64\nSETTINGS index_granularity = 8192
|
|
|
|
CREATE TABLE test.minmax_idx\n(\n `u64` UInt64, \n `i32` Int32, \n INDEX idx1 u64 * i32 TYPE minmax GRANULARITY 10\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/indices_alter1\', \'r1\')\nORDER BY u64\nSETTINGS index_granularity = 8192
|
|
|
|
CREATE TABLE test.minmax_idx_r\n(\n `u64` UInt64, \n `i32` Int32, \n INDEX idx1 u64 * i32 TYPE minmax GRANULARITY 10\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/indices_alter1\', \'r2\')\nORDER BY u64\nSETTINGS index_granularity = 8192
|
2019-01-17 09:16:39 +00:00
|
|
|
1 2
|
|
|
|
1 4
|
|
|
|
1 5
|
|
|
|
3 2
|
|
|
|
19 9
|
|
|
|
65 75
|
|
|
|
1 2
|
|
|
|
1 4
|
|
|
|
1 5
|
|
|
|
3 2
|
|
|
|
19 9
|
|
|
|
65 75
|
2020-04-08 08:18:35 +00:00
|
|
|
CREATE TABLE test.minmax_idx2\n(\n `u64` UInt64, \n `i32` Int32, \n INDEX idx1 u64 + i32 TYPE minmax GRANULARITY 10, \n INDEX idx2 u64 * i32 TYPE minmax GRANULARITY 10\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/indices_alter2\', \'r1\')\nORDER BY u64\nSETTINGS index_granularity = 8192
|
|
|
|
CREATE TABLE test.minmax_idx2_r\n(\n `u64` UInt64, \n `i32` Int32, \n INDEX idx1 u64 + i32 TYPE minmax GRANULARITY 10, \n INDEX idx2 u64 * i32 TYPE minmax GRANULARITY 10\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/indices_alter2\', \'r2\')\nORDER BY u64\nSETTINGS index_granularity = 8192
|
2019-01-17 09:16:39 +00:00
|
|
|
1 2
|
|
|
|
1 3
|
|
|
|
1 2
|
|
|
|
1 3
|
2020-04-08 08:18:35 +00:00
|
|
|
CREATE TABLE test.minmax_idx2\n(\n `u64` UInt64, \n `i32` Int32\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/indices_alter2\', \'r1\')\nORDER BY u64\nSETTINGS index_granularity = 8192
|
|
|
|
CREATE TABLE test.minmax_idx2_r\n(\n `u64` UInt64, \n `i32` Int32\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/indices_alter2\', \'r2\')\nORDER BY u64\nSETTINGS index_granularity = 8192
|
2019-01-17 09:16:39 +00:00
|
|
|
1 2
|
|
|
|
1 3
|
|
|
|
1 2
|
|
|
|
1 3
|