Skip to content

Commit

Permalink
stop using deprecated methods on java.sql.Timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Jun 12, 2024
1 parent 5bfd223 commit 7dd4224
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
case None =>
Row(null, null, null)
case Some(i) =>
val hour = new java.sql.Timestamp(i).getHours
val minute = new java.sql.Timestamp(i).getMinutes
val second = new java.sql.Timestamp(i).getSeconds
val hour = new java.sql.Timestamp(i).toLocalDateTime.getHour
val minute = new java.sql.Timestamp(i).toLocalDateTime.getMinute
val second = new java.sql.Timestamp(i).toLocalDateTime.getSecond

Row(hour, minute, second)
})
Expand Down

0 comments on commit 7dd4224

Please sign in to comment.