Github user mgaido91 commented on a diff in the pull request: https://github.com/apache/spark/pull/21352#discussion_r188951710 --- 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 -- this is not serialized since it is lazy and it is used only in the eval methods
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org