OG
Size: a a a
OG
DC
AP
DC
AP
AP
DC
AP
D
A
OPTIMIZE TABLE tablename FINAL
? А то похоже, у меня места на диске не хватает, чтобы завершить OPTIMIZED
PL
OPTIMIZE TABLE tablename FINAL
? А то похоже, у меня места на диске не хватает, чтобы завершить OPTIMIZEselect 'optimize table ' || database||'.'|| table || ' partition ' || partition || ' final /* ' || toString(count()) || ' parts currently */ ;'
from system.parts
where database = 'lz' and active
group by database, table, partition having count() > 1 order by count() desc limit 42;
A
DC
database, table,
partition
D
A
database, table,
partition
SELECT partition
FROM system.parts
WHERE table LIKE 'trades'
LIMIT 10
┌─partition─┐
│ 201707 │
│ 201707 │
│ 201707 │
│ 201708 │
│ 201708 │
│ 201708 │
│ 201708 │
│ 201708 │
│ 201709 │
│ 201709 │
└───────────┘
DC
SELECT partition
FROM system.parts
WHERE table LIKE 'trades'
LIMIT 10
┌─partition─┐
│ 201707 │
│ 201707 │
│ 201707 │
│ 201708 │
│ 201708 │
│ 201708 │
│ 201708 │
│ 201708 │
│ 201709 │
│ 201709 │
└───────────┘
database, table,
partition
A
DC
CO
select ub.user_id,
ub.created_date,
cast(JSONExtractRaw(JSONExtractRaw(ub.details, 'game'), 'id') as int) id,
cast(JSONExtractRaw(JSONExtractRaw(ub.details, 'game'), 'name') as varchar) name_game,
ub.amount
from user_balance ub
where
-- ub.user_id = 1 and
ub.reason = 'bet'
and created_date >= '2020-09-01 00:00:01'
не
могу выгрузить ((