DC
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'
не
могу выгрузить ((не
могу выгрузить ((в каком смысле?
однозначно можно заменить 4
JSONExtractRaw
на один