apache / apache/datafusion-sqlparser-rs
Cannot parse `select 1 in ()`
未关闭
- 主要语言
- Rust
- 星标
- 3.5k
- 派生
- 772
- 平均合并
- 4 天 9 小时
- 30 天内合并 PR
- 17
描述
I'm not sure if this should parse, Postgres for example also fails, but if possible it would be nice if this at least parsed if not executed correctly.
I tested this in datafusion-cli, but originally found it using Rust:
```
> SELECT 1 in (); 🤔 Invalid statement: sql parser error: Expected: an expression:, found: )
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先在 datafusion-cli 中复现 `SELECT 1 in ();`,并检查报告 expected-expression 错误的 SQL 解析器入口点。确认对空 IN 列表的预期处理方式,然后为选定的解析行为添加覆盖;当解析器测试和 CLI 行为与该决定一致时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust, sql
- 领域
- compilers
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100