Skip to content

Commit

Permalink
Use original input for null check rather than sanitized input
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Grove <andygrove@nvidia.com>
  • Loading branch information
andygrove committed Jan 20, 2021
1 parent 0a99b00 commit 55db986
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ case class GpuCast(
// When ANSI mode is enabled, we need to throw an exception if any values could not be
// converted
if (ansiMode) {
val wasNotNull = withResource(sanitizedInput.isNull()) { wasNull =>
val wasNotNull = withResource(input.isNull()) { wasNull =>
wasNull.not()
}
withResource(wasNotNull) { wasNotNull =>
Expand Down

0 comments on commit 55db986

Please sign in to comment.