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

为什么 selectdb 的 key 列可以为空,这种设计是基于什么考虑做的呢?

Asked Jul 15, 2024 Modified Jan 1, 0001
Viewed 79
2.0

如题,在 unique 模型中发现 key 列可以为空,实际测试也能写入为空的数据,请问一下为什么要这么设计。

edited Jan 1, 0001
hanhe5
asked Jul 15, 2024
1 Answers

如果非空,可以在定义字段时加not null;有些业务场景是需要允许null的。

edited Jan 1, 1970
张彬华7698
answered Jul 18, 2024
Related Questions
doris-2.1.5版本 MemTracker 未授权访问漏洞
1 answers
doris每日崩溃重启
1 answers
doris集群迁移,doris2.1.6迁移到doris4.1.3,CCR哪个版本能支持?
1 answers
调用Doris数据时报数据块损坏,根据官网解决方案排查,所有节点分片均正常,调用时还是会报错,doris版本为2.1.7
2 answers

Terms of service Privacy policy

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