apache / apache/datafusion-sqlparser-rs

Will the key in MapAccess support Express?

未关闭
#380 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
3.5k
派生
772
平均合并
4 天 9 小时
30 天内合并 PR
17

描述

The index of an array in ClickHouse can be an function such as :

```sql
string.values[indexOf(string.names, 'endpoint')]='/health'
```

PS: If sqlparser wants to support this syntax,I can submit a PR to support it.

贡献指南

这个仓库没有索引到贡献指南

调研方向

该 issue 提到了 MapAccess,并给出了一个 ClickHouse 数组索引示例,但没有指定文件或测试。首先定位 Rust SQL 解析器中对 MapAccess 的处理,并检查数组下标和函数表达式是如何测试的。完成标准是解析器接受所示表达式,并有回归测试覆盖。

由索引模型根据 Issue 内容生成。

评估

技术栈
rust, sql
领域
compilers
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。