【详述】问题详细描述
执行insert into 时报错,报错信息如下:
SQL 错误 [1064] [42000]: Vectorized engine does not support the operator
表结构如下:
create table rx_bd_olap.ods_fact_event_items_cnt(
event string NOT NULL COMMENT ‘事件名称’,
cpid bigint NOT NULL COMMENT ‘cpid’,
create_time string NOT NULL COMMENT ‘时间’,
items string DEFAULT NULL COMMENT ‘事件properties的所有字段’,
items_num bigint DEFAULT NULL COMMENT ‘事件properties的所有字段个数’
)
PRIMARY KEY(event, cpid, create_time)
distributed by hash(event) buckets 32
;
insert into sql 如下:
insert into rx_bd_olap.ods_fact_event_items_cnt
select
event
, cpid
, create_time
, items
, array_length(items) as items_num
from (
SELECT
event
, cpid
, create_time
, array_distinct(array_agg(k_name)) as items
from (
SELECT
event
, cpid
, create_time
, pro.key as k_name
from(
select
event
, cpid
, DATE_FORMAT(CURRENT_TIME(), ‘%Y-%m-%d’) as create_time
, parse_json(properties) as properties
from rx_bd_1000037.stage_fact_events
where DATE_FORMAT(create_time , ‘%Y-%m-%d’) <= DATE_FORMAT(CURRENT_TIME(), ‘%Y-%m-%d’) and event != ‘share_get_data’
) t1 , lateral json_each(properties) as pro
) t2
group by event , cpid , create_time
) t3
【背景】做过哪些操作?
无
【业务影响】
【StarRocks版本】2.2
【集群规模】3fe(1 follower+2observer)+5be(fe与be混部)
【机器信息】CPU虚拟核/内存/网卡,例如:48C/64G/万兆
【附件】
无
- 慢查询:
- Profile信息
无法执行,没有profile信息
- Profile信息
