apache / apache/datafusion-sqlparser-rs
ClickHouse parameterized view
- 主要语言
- Rust
- 星标
- 3.5k
- 派生
- 772
- 平均合并
- 4 天 9 小时
- 30 天内合并 PR
- 17
描述
I'd like to parse ClickHouse SQL which contains parameters for their [parameterized views](https://clickhouse.com/docs/en/sql-reference/statements/create/view#parameterized-view). The SQL looks like
`CREATE VIEW view AS SELECT * FROM TABLE WHERE Column1={column1:datatype1}`
Note the parameter is in the { } brackets. I don't think this could be implemented in the `Dialect` as curly braces are tokenized without deferring to the dialect. It would probably have to be handled by the tokenizer as a special case like numbers are for MySQL & Hive.
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 tokenizer 处理 MySQL 和 Hive 的数值特殊情况开始,然后检查在 Dialect 处理之前花括号 token 是如何发出的。完成的标准是:parser 接受所示的 ClickHouse 参数化视图形式,同时保留现有的花括号行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- clickhouse, rust, sql
- 领域
- databases
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100