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

    https://github.com/apache/spark/pull/21352#discussion_r188959951
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala
 ---
    @@ -388,7 +388,8 @@ case class Reverse(child: Expression) extends 
UnaryExpression with ImplicitCastI
     
       override def dataType: DataType = child.dataType
     
    -  lazy val elementType: DataType = 
dataType.asInstanceOf[ArrayType].elementType
    +  @transient
    +  private lazy val elementType: DataType = 
dataType.asInstanceOf[ArrayType].elementType
    --- End diff --
    
    code generation is executed on each partition so I'd say no, it is not 
executed before serialization.


---

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

Reply via email to