vinodkc commented on code in PR #53010:
URL: https://github.com/apache/spark/pull/53010#discussion_r2520578999


##########
sql/connect/client/jdbc/src/main/scala/org/apache/spark/sql/connect/client/jdbc/SparkConnectResultSet.scala:
##########
@@ -496,11 +497,23 @@ class SparkConnectResultSet(
   override def getArray(columnLabel: String): JdbcArray =
     throw new SQLFeatureNotSupportedException
 
-  override def getDate(columnIndex: Int, cal: Calendar): Date =
-    throw new SQLFeatureNotSupportedException
+  override def getDate(columnIndex: Int, cal: Calendar): Date = {
+    val date = getDate(columnIndex)
+    if (date == null || cal == null) {

Review Comment:
   Yes, you are right, it isn't necessary to perform time zone conversion 
between date and cal. I'll fix it with a follow-up PR.



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