abir123rajbongshi-debug commented on code in PR #60609:
URL: https://github.com/apache/spark/pull/60609#discussion_r4599719314


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala:
##########
@@ -480,6 +480,9 @@ object JdbcUtils extends Logging with SQLConfHelper {
     case _: StringType => JDBCValueGetter.StringGetter
     case TimestampType if metadata.contains("logical_time_type") =>
       JDBCValueGetter.LogicalTimeGetter
+    case TimestampType if 
options.exists(_.timestampCalendarTimeZone.isDefined) =>
+      JDBCValueGetter.TimestampWithCalendarGetter(

Review Comment:
   Added, the option now applies to writes too: makeSetter passes the same 
calendar to setTimestamp (both the Instant and java.sql.Timestamp paths)



-- 
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]

Reply via email to