
Александр
15.06.2018
12:31:16
доброго дня. Обновляю clickhouse и после обновления ругается на метаданные
Cannot create table from metadata file /home/clickhouse/data/metadata/default//npm_site_area_stat_cache.sql, error: DB::Exception: Syntax error (in file /home/clickhouse/data/metadata/default//npm_site_area_stat_cache.sql): failed at position 2126 (line 38, col 272): , 8192, block_request_count, block_view_count, external_first_request_count, external_view_requests, external_first_view_count, external_view_count, hit_count, . Expected one of: token, Arrow,
собственно вот описание таблицы:
ATTACH TABLE npm_site_area_stat_cache
(
date Date DEFAULT toDate(event_time),
interval UInt32 DEFAULT CAST((toRelativeMinuteNum(event_time) / 5) AS UInt32),
event_time DateTime DEFAULT now(),
user_id UInt32 DEFAULT toUInt32(0),
site_id UInt32,
site_area_id UInt32 DEFAULT toUInt32(0),
adv_net_id UInt32 DEFAULT toUInt32(0),
webmaster_net_id UInt32 DEFAULT toUInt32(0),
stat_source UInt8 DEFAULT toUInt8(1),
is_backup UInt8 DEFAULT toUInt8(0),
npm_reject_type_id UInt32 DEFAULT toUInt32(0),
block_request_count UInt32 DEFAULT toUInt32(0),
block_view_count UInt32 DEFAULT toUInt32(0),
external_first_request_count UInt32 DEFAULT toUInt32(0),
external_view_requests UInt32 DEFAULT toUInt32(0),
external_first_view_count UInt32 DEFAULT toUInt32(0),
external_view_count UInt32 DEFAULT toUInt32(0),
hit_count UInt32 DEFAULT toUInt32(0),
adv_expense Float64 DEFAULT toFloat64(0.),
partner_gain Float64 DEFAULT toFloat64(0.),
webmaster_cur_id UInt32 DEFAULT toUInt32(0),
advertiser_cur_id UInt32 DEFAULT toUInt32(0),
adv_expense_base Float64 DEFAULT toFloat64(0.),
partner_gain_base Float64 DEFAULT toFloat64(0.),
sale_cost Float64 DEFAULT toFloat64(0.),
sale_cost_base Float64 DEFAULT toFloat64(0.),
adv_expense_gbp Float64 DEFAULT toFloat64(0.),
partner_gain_gbp Float64 DEFAULT toFloat64(0.),
sale_cost_gbp Float64 DEFAULT toFloat64(0.),
read_only UInt8 DEFAULT toUInt8(0),
block_first_request_count UInt32 DEFAULT toUInt32(0),
block_first_view_count UInt32 DEFAULT toUInt32(0),
partner_gain_before_uplift_sharing Float64 DEFAULT toFloat64(0.),
partner_gain_base_before_uplift_sharing Float64 DEFAULT toFloat64(0.),
partner_gain_gbp_before_uplift_sharing Float64 DEFAULT toFloat64(0.)
) ENGINE = ReplicatedSummingMergeTree('/clickhouse/tables/{shard}/npm_site_area_stat_cache', '{replica}', date, (date, site_id, site_area_id, adv_net_id, webmaster_net_id, stat_source, is_backup, npm_reject_type_id, user_id, webmaster_cur_id, advertiser_cur_id, interval), 8192, (block_request_count, block_view_count, external_first_request_count, external_view_requests, external_first_view_count, external_view_count, hit_count, adv_expense, partner_gain, adv_expense_base, partner_gain_base, sale_cost, sale_cost_base, adv_expense_gbp, partner_gain_gbp, sale_cost_gbp, block_first_request_count, block_first_view_count, partner_gain_before_uplift_sharing, partner_gain_base_before_uplift_sharing, partner_gain_gbp_before_uplift_sharing))
подскажите что сменилось в синтаксисе