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


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JDBCValueGetter.scala:
##########
@@ -168,6 +168,18 @@ private[jdbc] object JDBCValueGetter {
     }
   }
 
+  final case class TimestampWithCalendarGetter(calendar: java.util.Calendar, 
dialect: JdbcDialect)

Review Comment:
   added



##########
docs/sql-data-sources-jdbc.md:
##########
@@ -398,6 +398,14 @@ logging into the data sources.
     </td>
     <td>read/write</td>
   </tr>
+  <tr>
+    <td><code>timestampCalendarTimeZone</code></td>
+    <td>(none)</td>
+    <td>
+      The time zone ID (for example <code>UTC</code> or 
<code>America/Los_Angeles</code>) in which the source renders TIMESTAMP values 
read as Spark's TimestampType. When set, the value is parsed with 
<code>ResultSet.getTimestamp</code> and a calendar in this time zone, so a 
driver that returns timestamps without an offset does not interpret them in the 
JVM default time zone. An invalid time zone ID fails the read. By default, 
values are parsed in the JVM default time zone.

Review Comment:
   rewrote this



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