dongjoon-hyun commented on code in PR #46201:
URL: https://github.com/apache/spark/pull/46201#discussion_r1578098806
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala:
##########
@@ -498,6 +498,12 @@ object JdbcUtils extends Logging with SQLConfHelper {
}
}
+ case TimestampNTZType if metadata.contains("logical_time_type") =>
+ (rs: ResultSet, row: InternalRow, pos: Int) =>
+ val micros = nullSafeConvert[java.sql.Time](rs.getTime(pos + 1), t =>
+ localDateTimeToMicros(LocalDateTime.of(LocalDate.EPOCH,
t.toLocalTime)))
+ row.update(pos, micros)
Review Comment:
Instead of here, shall we move these line before of the existing ` case
TimestampNTZType =>`? At line 510 (old line number)?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]