apache / apache/datafusion-sqlparser-rs
Why ast must implement PartialOrd/Ord?
未關閉
- 主要語言
- Rust
- 星號
- 3.5k
- 分支
- 772
- 平均合併
- 4 天 9 小時
- 30 天內合併 PR
- 17
描述
I'm working on adding `with` clause support for create index stmt https://www.postgresql.org/docs/current/sql-createindex.html. I plan to use `HashMap` to store `with` content, but failed to compile as `HashMap` doesn't implement PartialOrd/Ord. I'm curious why ast must implement PartialOrd/Ord?
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
首先閱讀影響新增 CREATE INDEX WITH 內容的 AST 定義和 trait 要求。將預期的 HashMap 表示與現有的 AST 排序行為進行比較,並確定此功能是否需要不同的表示或有文件記錄的理由。設計問題獲得解決,且可以一致地實作 CREATE INDEX WITH 支援,即代表完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- rust, sql
- 領域
- databases
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100