4paradigm / 4paradigm/OpenMLDB
create table add default null
未关闭
bug
- 主要语言
- C++
- 星标
- 1.7k
- 派生
- 331
- 平均合并
- 12 天 12 小时
- 30 天内合并 PR
- 1
描述
```
> create table t1(c1 string default null);
Error: [2000] default value type mismatch
```
`default null` is needless, but it should pass, and the error is not good.
贡献指南
调研方向
Look for SQL parser and type checking code related to CREATE TABLE and DEFAULT clause validation. The error 'default value type mismatch' suggests a type validation issue when NULL is specified. Find where default values are validated and ensure NULL is accepted for any column type. Test by creating a table with a string column default null.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- sql
- 领域
- databases
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100