DC
Size: a a a
DC
DC
BB
BB
BK
DT
ЗС
Sorting key cannot contain nullable columns
CREATE MATERIALIZED VIEW limits
ENGINE = AggregatingMergeTree() PARTITION BY toYYYYMM(timestamp) PRIMARY KEY (timestamp,skin_id) ORDER BY (timestamp,skin_id)
AS select
skin_id
,timestamp
,quantileExactWeighted(.8)(c_price,c_offers) as max
,quantileExactWeighted(0.2)(c_price,c_offers) as min
from states
GROUP BY skin_id, timestamp;
CREATE TABLE states
(
timestamp DateTime,
skin_id Int64,
c_classid Int64,
c_instanceid Int64,
c_price Int32,
c_offers UInt32,
c_market_hash_name String
)
ENGINE = ReplacingMergeTree()
PARTITION BY toYYYYMMDD(timestamp)
ORDER BY (timestamp,c_classid,c_instanceid)
TTL timestamp + INTERVAL 1 MONTH;
ЗС
timestamp,skin_id
nullable
если они таковыми не являются?DC
Sorting key cannot contain nullable columns
CREATE MATERIALIZED VIEW limits
ENGINE = AggregatingMergeTree() PARTITION BY toYYYYMM(timestamp) PRIMARY KEY (timestamp,skin_id) ORDER BY (timestamp,skin_id)
AS select
skin_id
,timestamp
,quantileExactWeighted(.8)(c_price,c_offers) as max
,quantileExactWeighted(0.2)(c_price,c_offers) as min
from states
GROUP BY skin_id, timestamp;
CREATE TABLE states
(
timestamp DateTime,
skin_id Int64,
c_classid Int64,
c_instanceid Int64,
c_price Int32,
c_offers UInt32,
c_market_hash_name String
)
ENGINE = ReplacingMergeTree()
PARTITION BY toYYYYMMDD(timestamp)
ORDER BY (timestamp,c_classid,c_instanceid)
TTL timestamp + INTERVAL 1 MONTH;
skin_id
в исходной таблице?ЗС
skin_id
в исходной таблице?DC
ЗС
SHOW CREATE TABLE states;
CREATE TABLE default.states
(
`timestamp` DateTime,
`c_classid` Int64,
`c_instanceid` Int64,
`c_price` Int32,
`c_offers` UInt32,
`skin_id` Nullable(Int64)
)
ENGINE = ReplacingMergeTree()
PARTITION BY toYYYYMMDD(timestamp)
ORDER BY (timestamp, c_classid, c_instanceid)
TTL timestamp + toIntervalMonth(1)
SETTINGS index_granularity = 8192
ЗС
DT
ЗС
R
settings.CLICKHOUSE_HOST
не указан отдельно взятый под,AP
settings.CLICKHOUSE_HOST
не указан отдельно взятый под,ЕА
R
RO