apache / apache/datafusion-sqlparser-rs
rule to detect extra col in multiline insert
未关闭
- 主要语言
- Rust
- 星标
- 3.5k
- 派生
- 772
- 平均合并
- 4 天 9 小时
- 30 天内合并 PR
- 17
描述
Description
```INSERT INTO y.x (a,b,c) VALUES ('1','1','1'), ('1','1','1','1'), ('1','1','1');```
Use case
want this parse to fail as 4th column in 2nd row but only 3 cols in the values
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先,使用 SQL parser 重新生成所提供的 INSERT 语句,并检查它如何处理 VALUES 列表中各行之间的列数。然后找到现有的 INSERT parser tests,并为第二行中的额外值添加覆盖;完成标准是该输入失败,而有效行被接受。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust, sql
- 领域
- databases
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 38/100