apache / apache/datafusion-sqlparser-rs
feat: Support IGNORE NULLS only for allowed aggregation functions
未关闭
- 主要语言
- Rust
- 星标
- 3.5k
- 派生
- 772
- 平均合并
- 4 天 9 小时
- 30 天内合并 PR
- 17
描述
Currently parser allows to parse queries which IMHO should be failing by unsupported syntax.
Like
`SELECT COUNT(*) IGNORE NULLS FROM (values (1), (null), (2));`
The allowed list for IGNORE NULLS can be found https://github.com/ronsavage/SQL/blob/master/sql-2016.ebnf
贡献指南
这个仓库没有索引到贡献指南
调研方向
从处理 IGNORE NULLS 的 SQL 解析器入口点开始,将其接受的函数与链接的 SQL-2016 语法中允许的函数列表进行比较。重现 COUNT(*) 示例,并添加测试覆盖,以便不支持的组合会失败,同时允许的聚合函数仍能继续解析。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust, sql
- 领域
- compilers
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100