Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20560#discussion_r180716400
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryRelation.scala
 ---
    @@ -169,4 +169,6 @@ case class InMemoryRelation(
     
       override protected def otherCopyArgs: Seq[AnyRef] =
         Seq(_cachedColumnBuffers, sizeInBytesStats, statsOfPlanToCache)
    +
    +  override def outputOrdering: Seq[SortOrder] = child.outputOrdering
    --- End diff --
    
    We should carry the logical ordering from the cached logical plan when 
building the `InMemoryRelation`


---

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

Reply via email to