mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-24 17:00:37 +00:00
feat: partition rule simplifier (#7622)
* basic impl Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * reuse collider Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * simplify range helpers Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * notes Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update unit test resule Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -422,7 +422,7 @@ pub async fn test_repartition_mito(store_type: StorageType) {
|
||||
| | ) |
|
||||
| | PARTITION ON COLUMNS ("id") ( |
|
||||
| | id < 5, |
|
||||
| | id >= 10 AND id < 20 OR id >= 20, |
|
||||
| | id >= 10, |
|
||||
| | id >= 5 AND id < 10 |
|
||||
| | ) |
|
||||
| | ENGINE=mito |
|
||||
@@ -687,7 +687,7 @@ pub async fn test_repartition_metric(store_type: StorageType) {
|
||||
| | PRIMARY KEY ("host") |
|
||||
| | ) |
|
||||
| | PARTITION ON COLUMNS ("host") ( |
|
||||
| | host < 'g' OR host >= 'g' AND host < 'm', |
|
||||
| | host < 'm', |
|
||||
| | host >= 'm' |
|
||||
| | ) |
|
||||
| | ENGINE=metric |
|
||||
|
||||
Reference in New Issue
Block a user