We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aceab91 commit fa7c991Copy full SHA for fa7c991
sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsSuite.scala
@@ -153,6 +153,13 @@ class SQLMetricsSuite extends SparkFunSuite with SharedSQLContext {
153
)
154
}
155
156
+ test("Sort metrics") {
157
+ // Assume the execution plan is
158
+ // WholeStageCodegen(nodeId = 0, Range(nodeId = 2) -> Sort(nodeId = 1))
159
+ val df = sqlContext.range(10).sort('id)
160
+ testSparkPlanMetrics(df, 2, Map.empty)
161
+ }
162
+
163
test("SortMergeJoin metrics") {
164
// Because SortMergeJoin may skip different rows if the number of partitions is different, this
165
// test should use the deterministic number of partitions.
0 commit comments