Github user wzhfy commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20560#discussion_r180390139
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala
 ---
    @@ -522,6 +524,8 @@ case class Range(
       override def computeStats(): Statistics = {
         Statistics(sizeInBytes = LongType.defaultSize * numElements)
       }
    +
    +  override def outputOrdering: Seq[SortOrder] = output.map(a => 
SortOrder(a, Descending))
    --- End diff --
    
    ordering is the same when `step` in `Range` is positive or negative?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to