dongjoon-hyun commented on a change in pull request #32655:
URL: https://github.com/apache/spark/pull/32655#discussion_r638366818
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/jdbc/MsSqlServerDialect.scala
##########
@@ -56,7 +56,7 @@ private object MsSqlServerDialect extends JdbcDialect {
}
override def getJDBCType(dt: DataType): Option[JdbcType] = dt match {
- case TimestampType => Some(JdbcType("DATETIME", java.sql.Types.TIMESTAMP))
+ case TimestampType => Some(JdbcType("DATETIME2", java.sql.Types.TIMESTAMP))
Review comment:
This may cause some problems on the existing Spark apps on MsSQLServer
tables. What happens when you try to access(read/write) the tables created by
old Spark versions?
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]