Skip to content

Commit

Permalink
feat(storage/flux): add group min/max pushdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Faith Chikwekwe committed Apr 6, 2021
1 parent 65c3851 commit a5383df
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 84 deletions.
36 changes: 36 additions & 0 deletions query/stdlib/influxdata/influxdb/min_max_influxdb_test.flux
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@ testcase push_down_min_bare extends "flux/planner/group_min_test" {
group_min_test.group_min_bare()
}

testcase push_down_min_bare_host extends "flux/planner/group_min_test" {
expect.planner(rules: [
"PushDownGroupAggregateRule": 1,
"PushDownRangeRule": 1,
"PushDownFilterRule": 1,
])
group_min_test.group_min_bare_host()
}

testcase push_down_min_bare_field extends "flux/planner/group_min_test" {
expect.planner(rules: [
"PushDownGroupAggregateRule": 1,
"PushDownRangeRule": 1,
"PushDownFilterRule": 1,
])
group_min_test.group_min_bare_field()
}

testcase push_down_max_bare extends "flux/planner/group_max_test" {
expect.planner(rules: [
"PushDownGroupAggregateRule": 1,
Expand All @@ -21,3 +39,21 @@ testcase push_down_max_bare extends "flux/planner/group_max_test" {
])
group_max_test.group_max_bare()
}

testcase push_down_max_bare_host extends "flux/planner/group_max_test" {
expect.planner(rules: [
"PushDownGroupAggregateRule": 1,
"PushDownRangeRule": 1,
"PushDownFilterRule": 1,
])
group_max_test.group_max_bare_host()
}

testcase push_down_max_bare_field extends "flux/planner/group_max_test" {
expect.planner(rules: [
"PushDownGroupAggregateRule": 1,
"PushDownRangeRule": 1,
"PushDownFilterRule": 1,
])
group_max_test.group_max_bare_field()
}
Loading

0 comments on commit a5383df

Please sign in to comment.