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