apache / apache/datafusion-sqlparser-rs
Representing infix `REGEXP`
未關閉
- 主要語言
- Rust
- 星號
- 3.5k
- 分支
- 772
- 平均合併
- 4 天 9 小時
- 30 天內合併 PR
- 17
描述
[MySQL](https://dev.mysql.com/doc/refman/8.0/en/regexp.html) & Sqlite have unusual regex operators:
```sql
SELECT 'a' REGEXP '^[a-d]';
```
i.e. it's an infix function.
We are big users (and big fans!) of `sqlparser-rs` in PRQL We have a PR https://github.com/PRQL/prql/pull/2458 for implementing regex in the other dialects.
Could I ask — is there some way of representing an infix function in `sqlparser-rs` AST?
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
先檢查 sqlparser-rs 的 AST 與運算式解析,了解現有的中置運算子,接著比較 MySQL 與 SQLite 語法的表示方式。該 issue 未指定檔案或測試,也未定義支援中置函式的完成標準;請在實作之前釐清預期的 AST 形狀以及受影響方言的行為。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- rust, sql
- 領域
- compilers, databases
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100