apache / apache/datafusion-sqlparser-rs

rule to detect extra col in multiline insert

未關閉
#893 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。