Skip to content

Commit

Permalink
Updating UT
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeep6189 committed Aug 16, 2023
1 parent 4f069c7 commit 2e7f374
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1095,11 +1095,12 @@ class MultiPartitionPlannerSpec extends AnyFunSpec with Matchers with PlanValida

val engine = new MultiPartitionPlanner(partitionLocationProvider, localPlanner, "local",
dataset, queryConfig)
val lp = TsCardinalities(Seq("a", "b"), 3, 2, Seq("longtime-prometheus","recordingrules-prometheus_rules_1m"))
val lp = TsCardinalities(Seq("a", "b"), 3, 2, Seq("longtime-prometheus","recordingrules-prometheus_rules_1m")
, "raw,recordingrules")
val promQlQueryParams = PromQlQueryParams("", startSeconds, step, endSeconds,
Some("/api/v2/metering/cardinality/timeseries"))
val expectedUrlParams = Map("match[]" -> """{_ws_="a",_ns_="b"}""", "numGroupByFields" -> "3","verbose" -> "true",
"datasets" -> "longtime-prometheus,recordingrules-prometheus_rules_1m")
"datasets" -> "raw,recordingrules")

val execPlan = engine.materialize(lp, QueryContext(origQueryParams = promQlQueryParams, plannerParams =
PlannerParams(processMultiPartition = true)))
Expand Down

0 comments on commit 2e7f374

Please sign in to comment.