dongjoon-hyun commented on code in PR #53046:
URL: https://github.com/apache/spark/pull/53046#discussion_r2525172466
##########
sql/connect/client/jdbc/src/main/scala/org/apache/spark/sql/connect/client/jdbc/SparkConnectResultSet.scala:
##########
@@ -558,11 +578,20 @@ class SparkConnectResultSet(
override def getTime(columnLabel: String, cal: Calendar): Time =
getTime(findColumn(columnLabel))
- override def getTimestamp(columnIndex: Int, cal: Calendar): Timestamp =
- throw new SQLFeatureNotSupportedException
+ /**
+ * Note: The Calendar parameter is ignored. Spark Connect handles timezone
conversions
+ * server-side to avoid client/server timezone inconsistencies.
+ */
+ override def getTimestamp(columnIndex: Int, cal: Calendar): Timestamp = {
+ getTimestamp(columnIndex)
+ }
+ /**
+ * Note: The Calendar parameter is ignored. Spark Connect handles timezone
conversions
+ * server-side to avoid client/server timezone inconsistencies.
Review Comment:
Ah, got it.
--
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]