apache / apache/datafusion-sqlparser-rs

Snowflake LIST @foo and REMOVE @foo stage syntax fail to parse with a semicolon

未關閉
#1,773 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
3.5k
分支
772
平均合併
4 天 9 小時
30 天內合併 PR
17

描述

```sql
-- breaks
LIST @bar;

-- ok
LIST @bar

-- breaks
REMOVE @bar;

-- ok
REMOVE @bar
```

This is starting to become a theme. See #1244, #1519.

1. can all the tests be made to test both with and without a semicolon
2. can the parser be generalized so whether a statement ends with EOF or `;` isn't up to every individual statement

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

先找出 parser 的進入點以及 LIST 和 REMOVE 的現有測試,然後比較此處描述的有分號和無分號情況。完成的標準是兩種形式都能一致地進行解析,相關測試涵蓋兩種結尾,且陳述式終止不再由每個陳述式分別處理。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
rust, sql
領域
compilers, databases
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
38/100

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

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