mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-12 10:34:21 +00:00
11 lines
872 B
Plaintext
11 lines
872 B
Plaintext
|
localhost 9000 0 0 0
|
||
|
localhost 9000 0 0 0
|
||
|
demo_loan_01568
|
||
|
demo_loan_01568
|
||
|
CREATE TABLE shard_0.demo_loan_01568\n(\n `id` Int64 COMMENT \'id\',\n `date_stat` Date COMMENT \'date of stat\',\n `customer_no` String COMMENT \'customer no\',\n `loan_principal` Float64 COMMENT \'loan principal\'\n)\nENGINE = ReplacingMergeTree\nPARTITION BY toYYYYMM(date_stat)\nORDER BY id\nSETTINGS index_granularity = 8192
|
||
|
CREATE TABLE shard_1.demo_loan_01568\n(\n `id` Int64 COMMENT \'id\',\n `date_stat` Date COMMENT \'date of stat\',\n `customer_no` String COMMENT \'customer no\',\n `loan_principal` Float64 COMMENT \'loan principal\'\n)\nENGINE = ReplacingMergeTree\nPARTITION BY toYYYYMM(date_stat)\nORDER BY id\nSETTINGS index_granularity = 8192
|
||
|
1 2021-04-13 qwerty 3.14159
|
||
|
2 2021-04-14 asdfgh 2.71828
|
||
|
2 2021-04-14 asdfgh 2.71828
|
||
|
1 2021-04-13 qwerty 3.14159
|