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

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

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

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

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

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

edited Jan 1, 1970
张彬华7688
answered Jul 18, 2024
Related Questions
fe节点空指针,两个be节点只有一个存活
求助:be频繁重启,目前推测由于arm内存管理,能否分析帮忙具体报错和提供解决措施?
doris单表分区数量限制
1 answers
EXPORT 导出cvs 数据为空 导出为\N 怎么修改这个设置
【求助】升级到2.1.8版本后,从S3导入数据变慢
1 answers
storage policy删除以后,日志一直报could not find storage_policy
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 中文技术论坛.