AK
Size: a a a
AK
DC
AA
create table transactions
(
id Int64,
active UInt8,
action UInt8,
parent_id Nullable(Int64),
error_id Nullable(Int64),
type String
)
engine = Kafka('192.168.60.2:9092', '
test',
'group1') SETTINGS kafka_format = 'JSONEachRow',
kafka_num_consumers = 4;
DC
create table transactions
(
id Int64,
active UInt8,
action UInt8,
parent_id Nullable(Int64),
error_id Nullable(Int64),
type String
)
engine = Kafka('192.168.60.2:9092', '
test',
'group1') SETTINGS kafka_format = 'JSONEachRow',
kafka_num_consumers = 4;
JSONEachRow
-- это особый формат, который понимает КХ и это НЕ JSONJSONEachRow
СФ
IB
D
AR
D
D
D
AR
AR
D
AR
D
D
AR
Э
CREATE TABLE logs (
`created_datetime` DateTime DEFAULT now(),
`event_datetime` DateTime,
) ENGINE = MergeTree PARTITION BY toYYYYMM(event_datetime)
ORDER BY
(event_datetime, msisdn) TTL event_datetime + toIntervalWeek(1)
DC