apache / apache/datafusion-sqlparser-rs
Clickhouse `WITH <expression> AS <identifier>` syntax
未关闭
- 主要语言
- Rust
- 星标
- 3.5k
- 派生
- 772
- 平均合并
- 4 天 9 小时
- 30 天内合并 PR
- 17
描述
Hey 👋
The `WITH AS ` (doc [here](https://clickhouse.com/docs/en/sql-reference/statements/select/with)) does not seem to be supported.
For instance, this command with the `ClickHouseDialect` does not work (nor with `GenericDialiect`):
```
WITH concat(prefix_addr, '/', prefix_len) AS prefix SELECT prefix FROM table
```
```
sql parser error: Expected: (, found: prefix at Line: 1, Column: 46
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先使用 ClickHouseDialect 和 GenericDialect 重现所提供的查询,并以第 1 行第 46 列报告的解析器错误作为切入点。沿着 WITH 的解析路径,确定表达式加标识符形式是如何处理的;完成的标准是该示例能够针对相关方言成功解析。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust, sql
- 领域
- compilers
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100