Skip to content

Commit 3d95fe5

Browse files
committed
reorder
1 parent fbdc5d5 commit 3d95fe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ class SQLQueryTestSuite extends QueryTest with SharedSQLContext {
213213
private def getNormalizedResult(session: SparkSession, sql: String): (StructType, Seq[String]) = {
214214
// Returns true if the plan is supposed to be sorted.
215215
def isSorted(plan: LogicalPlan): Boolean = plan match {
216-
case _: Command => true
217216
case _: Join | _: Aggregate | _: Generate | _: Sample | _: Distinct => false
217+
case _: Command => true
218218
case PhysicalOperation(_, _, Sort(_, true, _)) => true
219219
case _ => plan.children.iterator.exists(isSorted)
220220
}

0 commit comments

Comments
 (0)