T
measurements: String,
tag_set: Dict,
field_set: Dict,
timestamp: UInt64
Size: a a a
T
measurements: String,
tag_set: Dict,
field_set: Dict,
timestamp: UInt64
T
pk
D
T
D
select min(v) minv, max(v) maxv,
(arrayJoin(arrayFilter (x-> x.2=minv or x.2=maxv, groupArray( (k,v) ) as rowtuple) ) as filteredRowTuple).1 as kfiltered,
filteredRowTuple.2 as vfiltered
from (
select k, v from (
select ['a','b','c', 'd','e'] k, [1,2,-1,0,5] v
) array join k, v
)
;
D
НЧ
DC
T
Э
CO
CO
create table promotions
(
id Int32 ,
name String,
term String,
description String,
code String,
conditions String,
action String,
deposit_order Int8,
created_date DateTime,
start_date DateTime,
end_date DateTime,
is_active Int8,
is_deleted Int8,
admin_id Int32,
adw_refcode String,
updated_date DateTime,
department String,
segment String,
segmentation_id Int32,
promotion_type String,
is_confirmation_required Int8,
run_time String,
activation_count_type String,
activation_count Int32,
days_lifetime Int8,
max_wager_bet Int32
) engine = MergeTree()
PARTITION BY toYYYYMM(created_date)
ORDER BY (id, created_date)
SAMPLE BY intHash32(id)
SETTINGS index_granularity = 8192
DC
M
D
CO
D
CO
DC