【详述】问题详细描述
表列重命名后,过滤列报错,此问题必现
【背景】做过哪些操作?
表列重命名后,过滤列报错:
-
创建表
create table test_col (
id int,
col_before string
)
duplicate key(id)
; -
插入数据
insert into test_col values(1, ‘a’); -
修改列
alter table test_col rename column col_before to col_after; -
查询
– 报错:SQL 错误 [1064] [42000]: invalid field name: col_after: BE:10002
select id from test_col where col_after != ‘’;
– select中带col_after无报错
select id,col_after from test_col where col_after != ‘’;
版本3.4.2
【业务影响】
无法对列进行过滤
【是否存算分离】否
【StarRocks版本】3.4.2
【集群规模】单机
【机器信息】CPU虚拟核/内存/网卡,例如:48C/64G/万兆
【联系方式】