Skip to content

Commit

Permalink
Added foldable support to CreateArray
Browse files Browse the repository at this point in the history
  • Loading branch information
gvramana committed Nov 22, 2014
1 parent f1069b8 commit 7f94aff
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ case class GetField(child: Expression, fieldName: String) extends UnaryExpressio
*/
case class CreateArray(children: Seq[Expression]) extends Expression {
override type EvaluatedType = Any


override def foldable = !children.exists(!_.foldable)

lazy val childTypes = children.map(_.dataType).distinct

override lazy val resolved =
Expand Down

0 comments on commit 7f94aff

Please sign in to comment.