cloud-fan commented on code in PR #45655:
URL: https://github.com/apache/spark/pull/45655#discussion_r1535007551
##########
sql/core/src/main/scala/org/apache/spark/sql/jdbc/MySQLDialect.scala:
##########
@@ -210,6 +210,7 @@ private case class MySQLDialect() extends JdbcDialect with
SQLConfHelper {
case FloatType => Option(JdbcType("FLOAT", java.sql.Types.FLOAT))
case StringType => Option(JdbcType("LONGTEXT", java.sql.Types.LONGVARCHAR))
case ByteType => Option(JdbcType("TINYINT", java.sql.Types.TINYINT))
+ case TimestampNTZType => Option(JdbcType("DATETIME",
java.sql.Types.TIMESTAMP))
Review Comment:
can we add some comments to explain that this is because MySQL has a special
type name for ntz?
--
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]