Github user gatorsmile commented on a diff in the pull request: https://github.com/apache/spark/pull/20560#discussion_r178327166 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LogicalPlan.scala --- @@ -219,6 +219,11 @@ abstract class LogicalPlan * Refreshes (or invalidates) any metadata/data cached in the plan recursively. */ def refresh(): Unit = children.foreach(_.refresh()) + + /** + * If the current plan contains sorted data, it contains the sorted order. + */ + def sortedOrder: Seq[SortOrder] = Nil --- End diff -- `def outputOrdering`?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org