MK
это все можно сделать с помощью Materialized View над таблицей с движком Engine=Null даже
Size: a a a
MK
DC
DC
PK
pk
PK
DC
PK
DC
PK
DC
PK
DC
PK
session_start DateTime64(3, 'Etc/UTC'),
session_end DateTime64(3, 'Etc/UTC'),
filter_ip IPv4,
local_ipv4 Nullable(IPv4),
local_ipv6 Nullable(IPv6),
local_port UInt16,
remote_ipv4 Nullable(IPv4),
remote_ipv6 Nullable(IPv6),
remote_port UInt16,
dpi_protocol_code_list Array(UInt32)
) engine = ReplicatedMergeTree('/clickhouse/tables/{shard}/session_log.session_signature_log_local', '{replica}')
partition by toStartOfDay(session_start)
order by (session_start, filter_ip);
D
V
AZ
V
AZ
AZ