Skip to content

Commit

Permalink
Revert "DROP: printPairs"
Browse files Browse the repository at this point in the history
This reverts commit 2054a7f.
  • Loading branch information
alextheimer committed Jan 12, 2024
1 parent ffb6a98 commit 0ffd391
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ import filodb.prometheus.parse.Parser.Antlr
import filodb.query.{BadQueryException, IntervalSelector, LabelCardinality, PlanValidationSpec, RawSeries}
import filodb.query.exec._


import scala.collection.mutable

// scalastyle:off line.size.limit
// scalastyle:off number.of.methods
class PlannerHierarchySpec extends AnyFunSpec with Matchers with PlanValidationSpec {
Expand Down Expand Up @@ -593,18 +590,6 @@ class PlannerHierarchySpec extends AnyFunSpec with Matchers with PlanValidationS
validatePlan(execPlan, expected)
}

class QueryExpectedPairs {
val pairs = new mutable.ArrayBuffer[(String, String)]
def addPair(query: String, plan: ExecPlan): Unit = {
pairs.append((query, plan.printTree().replaceAll("\n", "\n |")))
}
def printPairs(): Unit = {
for ((query, expected) <- pairs) {
println(s"""(\"\"\"$query\"\"\",\n \"\"\"$expected\"\"\".stripMargin),""")
}
}
}


it("should not pushdown root scalar operation into a RemoteExec's promql when query spans multiple partitions") {
val queryExpectedPairs = Seq(
Expand Down

0 comments on commit 0ffd391

Please sign in to comment.