Skip to content

Commit

Permalink
fix codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaido91 committed Apr 21, 2018
1 parent d6bc7e9 commit aa84034
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ case class CheckOverflow(
nullSafeCodeGen(ctx, ev, eval => {
s"""
|${ev.value} = $eval.toPrecision(
| ${dataType.precision}, ${dataType.scale}, Decimal.ROUND_HALF_UP, $nullOnOverflow);
| ${dataType.precision}, ${dataType.scale}, Decimal.ROUND_HALF_UP(), $nullOnOverflow);
|${ev.isNull} = ${ev.value} == null;
""".stripMargin
})
Expand Down

0 comments on commit aa84034

Please sign in to comment.