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

如何在通过 S3 Parquet 文件向 SingleStoreDB 唯一键表导入数据时,保留已有值且不被 NULL 覆盖?

Asked May 9, 2025 Modified Jan 1, 0001
Viewed 16
3.0 ingestion

我目前使用 S3 上存储的 Parquet 文件批量导入数据到 SingleStoreDB(SelectDB)中的一张具有唯一键约束的表。由于业务需求,如果 Parquet 文件中某些列的值为 NULL,在导入时 不 应该将目标表中对应字段的已有值覆盖成 NULL,而应保持原先数据不变;只有当源数据不为 NULL 时,才进行更新或插入。

edited Jan 1, 0001
weijian wang1
asked May 9, 2025
2 Answers

image.png

edited Jan 1, 1970
Arch196
answered May 9, 2025

后面主键在新版本应该有一个灵活列更新,到时可以多关注我们的发版。参考灵活列更新文档

edited May 9, 2025
Arch196
answered May 9, 2025
Related Questions
doris2.1.5升级到doris3.0.8,升级后开启ranger,root执行SHOW PROC '/backends' 报没有admin权限
routine load只支持部分列更新,不支持灵活列更新,什么时候能支持?
1 answers
为什么采用AGGREGATE KEY引擎的REPLACE_IF_NOT_NULL,最后的查询巨慢?
1 answers
Spark Doris Connector 写入 doris 云服务器内网不可达
1 answers
the report queue size exceeds the limit: xxx
1 answers
存算分离创建 STORAGE VAULT 问题,hdfs高可用下dfs.client.failover.proxy.provider.mycluster配置问题
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 中文技术论坛.