Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
Signed-off-by: Nghia Truong <[email protected]>
  • Loading branch information
ttnghia committed Dec 12, 2024
1 parent e56824e commit 2201fde
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1535,9 +1535,9 @@ abstract class GpuTruncDateTime(fmtStr: Option[String]) extends GpuBinaryExpress
DateTimeUtils.truncate(datetimeCol.getBase, fmtCol.getBase)
}

protected def truncate(datetimeVal: GpuScalar, formatCol: GpuColumnVector): ColumnVector = {
protected def truncate(datetimeVal: GpuScalar, fmtCol: GpuColumnVector): ColumnVector = {
withResource(ColumnVector.fromScalar(datetimeVal.getBase, 1)) { datetimeCol =>
DateTimeUtils.truncate(datetimeCol, formatCol.getBase)
DateTimeUtils.truncate(datetimeCol, fmtCol.getBase)
}
}

Expand Down

0 comments on commit 2201fde

Please sign in to comment.