Skip to content

Commit

Permalink
Reset variable code to avoid re-evaluate.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Mar 12, 2016
1 parent 2ef4c59 commit 0068ff8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ case class BoundReference(ordinal: Int, dataType: DataType, nullable: Boolean)
val oev = ctx.currentVars(ordinal)
ev.isNull = oev.isNull
ev.value = oev.value
oev.code
val code = oev.code
oev.code = ""
code
} else if (nullable) {
s"""
boolean ${ev.isNull} = ${ctx.INPUT_ROW}.isNullAt($ordinal);
Expand Down

0 comments on commit 0068ff8

Please sign in to comment.