ClickHouse/tests/queries/0_stateless/00983_summing_merge_tree_not_an_identifier.sql

14 lines
271 B
MySQL
Raw Normal View History

2019-08-08 20:04:16 +00:00
CREATE TABLE xx
(
`date` Date,
`id` Int64,
`clicks` Int64,
`price` Float64,
`spend` Float64
)
ENGINE = SummingMergeTree([price, spend])
PARTITION BY toYYYYMM(date)
ORDER BY id
SAMPLE BY id
SETTINGS index_granularity = 8192; -- { serverError 223 }