АГ
Size: a a a
АГ
DC
SB
Code: 70. DB::Exception: The type "fixed_size_binary" of an input column "_col2" is not supported for conversion from a ORC data format
MK
VB
MK
Y
create table metrics
(
ts DateTime('Europe/Moscow'),
row1 AggregateFunction(quantileTDigest(0.5), Float64),
row2 AggregateFunction(quantileTDigest(0.75), Float64),
row3 AggregateFunction(quantileTDigest(0.99), Float64),
)
engine = AggregatingMergeTree PARTITION BY toYYYYMM(ts)
ORDER BY (
row1,
row2,
row3
) SETTINGS index_granularity = 8192;
CREATE MATERIALIZED VIEW mw_example
TO metrics
AS
SELECT toStartOfInterval(ts, toIntervalSecond(60)) AS ts,
quantileTDigestState(0.5)(row1) AS q50,
quantileTDigestState(0.75)(row2) AS q75,
quantileTDigestState(0.99)(row3) AS q99
FROM another_table
WHERE row1 = 'test'
GROUP BY ts, row1, row2, row3
ORDER BY ts ASC, row1 ASC, row2 ASC, row3 ASC;
DC
create table metrics
(
ts DateTime('Europe/Moscow'),
row1 AggregateFunction(quantileTDigest(0.5), Float64),
row2 AggregateFunction(quantileTDigest(0.75), Float64),
row3 AggregateFunction(quantileTDigest(0.99), Float64),
)
engine = AggregatingMergeTree PARTITION BY toYYYYMM(ts)
ORDER BY (
row1,
row2,
row3
) SETTINGS index_granularity = 8192;
CREATE MATERIALIZED VIEW mw_example
TO metrics
AS
SELECT toStartOfInterval(ts, toIntervalSecond(60)) AS ts,
quantileTDigestState(0.5)(row1) AS q50,
quantileTDigestState(0.75)(row2) AS q75,
quantileTDigestState(0.99)(row3) AS q99
FROM another_table
WHERE row1 = 'test'
GROUP BY ts, row1, row2, row3
ORDER BY ts ASC, row1 ASC, row2 ASC, row3 ASC;
AE
DC
AE
DC
AE
Y
SC
SC
DC
DC
DC
DC