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

doris中distinct的应用

Asked Nov 15, 2024 Modified Jan 1, 0001
Viewed 32
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
徐振超@SelectDB7171
answered Nov 15, 2024
Related Questions
Doris 创建链接报错:Reach limit of connections
分区表查询分区字段触发全表扫描
spark-doris-connector 写入异常,sql却提示成功
1 answers
Spring Framework 的 functional web frameworks (WebMvc.fn 和 WebFlux.fn) 中存在路径遍历漏洞
1 answers
2.1.11的arm版的包是不是不太对
1 answers
2.1.10版本使用"__DORIS_DELETE_SIGN__":1 批量删除对于routine load的一流多表测试不起作用?

Terms of service Privacy policy

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