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

doris中distinct的应用

Asked Nov 15, 2024 Modified Jan 1, 0001
Viewed 30
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
徐振超@SelectDB7121
answered Nov 15, 2024
Related Questions
doris_audit_log_tbl__日志中文乱码
doris-2.1.7突然无法连接
1 answers
doris2.1.9版本视图权限问题
Doris 2.1.9 be.out文件体积异常大 100G-200G
如图中所示,我1fe 2be,测试2000万行0.2G数据,导出文件不会分散在多个节点上,enable_parallel_outfile也开了,是有什么条件吗?
如图,max_byte_per_task这个参数不是默认值9G吗,为什么官网写100G呢?还是说100G是最大值?

Terms of service Privacy policy

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