Skip to content

Commit

Permalink
[SPARK-24305][SQL][FOLLOWUP] Making fields used in eval lazy-evaluate…
Browse files Browse the repository at this point in the history
…d (Concat, MapConcat)
  • Loading branch information
mn-mikke committed Jul 17, 2018
1 parent a0abc25 commit 872ef99
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ case class MapConcat(children: Seq[Expression]) extends ComplexTypeMergingExpres
}
}

override def dataType: MapType = {
@transient override lazy val dataType: MapType = {
if (children.isEmpty) {
MapType(StringType, StringType)
} else {
Expand Down Expand Up @@ -2224,7 +2224,7 @@ case class Concat(children: Seq[Expression]) extends ComplexTypeMergingExpressio
}
}

override def dataType: DataType = {
@transient override lazy val dataType: DataType = {
if (children.isEmpty) {
StringType
} else {
Expand Down

0 comments on commit 872ef99

Please sign in to comment.