【详述】明细模型中, 唯一id查询某些数据时而可查询到, 时而无法查询到
【背景】明细模型建表, 启动flinksql导入实时数据, 外表select insert 导入tidb中的历史数据. 导入完成后 执行过delete删除操作
【业务影响】
【StarRocks版本】2.0.2
【集群规模】例如:3fe(3 follower)+3be(fe与be混部)
【机器信息】16C/64G
【附件】
CREATE TABLE table1 (
pid varchar(65533) DEFAULT “-2” ,
cid varchar(65533) DEFAULT “-2”,
created datetime DEFAULT “1999-01-01 00:00:00” ,
id largeint(40) NOT NULL COMMENT “主键”,
) ENGINE=OLAP
DUPLICATE KEY(pid, cid, created)
DISTRIBUTED BY HASH(id) BUCKETS 12
PROPERTIES (
“replication_num” = “3”,
“in_memory” = “false”,
“storage_format” = “DEFAULT”
);
示例数据
INSERT INTO table1 (pid, cid, created, id) VALUES (‘3740671653336075124’, ‘249409811611499016836777’, ‘2022-03-09 17:24:45’, 7594066843389152691);
查询语句
select id from table1 where id=7594066843389152691