Skip to content

Commit

Permalink
Add code gen support
Browse files Browse the repository at this point in the history
  • Loading branch information
chenghao-intel committed Jun 9, 2015
1 parent 548d2ef commit db604ae
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ case class Length(child: Expression) extends UnaryExpression with ExpectsInputTy
}

override def toString: String = s"LENGTH($child)"

override def genCode(ctx: CodeGenContext, ev: GeneratedExpressionCode): String = {
defineCodeGen(ctx, ev, c => s"($c).length()")
}
}


0 comments on commit db604ae

Please sign in to comment.