Skip to content

Commit

Permalink
Fix leak in isTimeStamp (#11845)
Browse files Browse the repository at this point in the history
Signed-off-by: Kuhu Shukla <[email protected]>
  • Loading branch information
kuhushukla authored Dec 10, 2024
1 parent 45cdac3 commit 96a58d1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,9 @@ object GpuToTimestamp {
case _ =>
// this is the incompatibleDateFormats case where we do not guarantee compatibility with
// Spark and assume that all non-null inputs are valid
ColumnVector.fromScalar(Scalar.fromBool(true), col.getRowCount.toInt)
withResource(Scalar.fromBool(true)) { s =>
ColumnVector.fromScalar(s, col.getRowCount.toInt)
}
}
}

Expand Down

0 comments on commit 96a58d1

Please sign in to comment.