aleksandar-trajkovic-db commented on code in PR #60609:
URL: https://github.com/apache/spark/pull/60609#discussion_r4599734928
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JDBCValueGetter.scala:
##########
@@ -168,6 +169,18 @@ private[jdbc] object JDBCValueGetter {
}
}
+ final case class TimestampWithCalendarGetter(calendar: Calendar, dialect:
JdbcDialect)
Review Comment:
Do we need a new getter for this? Can we not expand the existing getter for
this use case? It seems to minimally differ from the existing getter and this
introduces new surface area to maintain, which might create confusion in the
future as to what TimestampType to use for eg new connectors. In general we try
to avoid having multiple getters for the same data type, unless absolutely
necessary.
--
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]