apache / apache/datafusion-sqlparser-rs
Snowflake LIST @foo and REMOVE @foo stage syntax fail to parse with a semicolon
未关闭
- 主要语言
- 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