diff --git a/backends-clickhouse/src/test/scala/io/glutenproject/execution/metrics/GlutenClickHouseTPCHMetricsSuite.scala b/backends-clickhouse/src/test/scala/io/glutenproject/execution/metrics/GlutenClickHouseTPCHMetricsSuite.scala index bd877bc4cfb83..bae8adb1a2546 100644 --- a/backends-clickhouse/src/test/scala/io/glutenproject/execution/metrics/GlutenClickHouseTPCHMetricsSuite.scala +++ b/backends-clickhouse/src/test/scala/io/glutenproject/execution/metrics/GlutenClickHouseTPCHMetricsSuite.scala @@ -207,18 +207,14 @@ class GlutenClickHouseTPCHMetricsSuite extends GlutenClickHouseTPCHAbstractSuite case g: GlutenPlan if !g.isInstanceOf[InputIteratorTransformer] => g } - // scalastyle:off println - println("=========================") - allGlutenPlans.foreach(p => println(p.toString)) - println("=========================") - val scanPlan = allGlutenPlans(10) + val scanPlan = allGlutenPlans(9) assert(scanPlan.metrics("scanTime").value == 2) assert(scanPlan.metrics("inputWaitTime").value == 3) assert(scanPlan.metrics("outputWaitTime").value == 1) assert(scanPlan.metrics("outputRows").value == 80000) assert(scanPlan.metrics("outputBytes").value == 2160000) - val filterPlan = allGlutenPlans(9) + val filterPlan = allGlutenPlans(8) assert(filterPlan.metrics("totalTime").value == 1) assert(filterPlan.metrics("inputWaitTime").value == 13) assert(filterPlan.metrics("outputWaitTime").value == 1) @@ -227,7 +223,7 @@ class GlutenClickHouseTPCHMetricsSuite extends GlutenClickHouseTPCHAbstractSuite assert(filterPlan.metrics("inputRows").value == 80000) assert(filterPlan.metrics("inputBytes").value == 2160000) - val joinPlan = allGlutenPlans(3) + val joinPlan = allGlutenPlans(2) assert(joinPlan.metrics("totalTime").value == 1) assert(joinPlan.metrics("inputWaitTime").value == 6) assert(joinPlan.metrics("outputWaitTime").value == 0) @@ -247,7 +243,10 @@ class GlutenClickHouseTPCHMetricsSuite extends GlutenClickHouseTPCHAbstractSuite val allGlutenPlans = wholeStageTransformer2.collect { case g: GlutenPlan if !g.isInstanceOf[InputIteratorTransformer] => g } - + // scalastyle:off println + println("=========================") + allGlutenPlans.foreach(p => println(p.toString)) + println("=========================") assert(allGlutenPlans.size == 58) val shjPlan = allGlutenPlans(8)