Apache Doris 中文技术论坛
Questions Tags Users Badges

doris中distinct的应用

Asked Nov 15, 2024 Modified Jan 1, 0001
Viewed 67
2.1

doris在unique模式下,使用insert into导入数据时,为什么不能使用distinct on按照主键去重?除了开窗函数,还有什么好的方法可以代替?

edited Jan 1, 0001
zhuixun_yudi1
asked Nov 15, 2024
1 Answers

unique模型下,你这个insert into的时候,如果是有主键重复的话,他会覆盖旧数据的
https://doris.apache.org/zh-CN/docs/table-design/data-model/unique

edited Jan 1, 1970
徐振超@SelectDB(可以直接加微信Faith_xzc)8226
answered Nov 15, 2024
Related Questions
能使用ROUTINE LOAD将kafka数据批量同步到doris中吗
1 answers
doris 2.1 stream load 使用group commit 有2个报错
1 answers
Doris 某个be节点负载高,导致短暂宕机
1 answers
flink 多job checkpoint超时,doirs abort transation
1 answers
doirs表数据归档到对象存储的问题
2 answers
Doris BE节点启动后60秒自动重启
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.