yaooqinn commented on code in PR #40573:
URL: https://github.com/apache/spark/pull/40573#discussion_r1150009461
##########
sql/core/src/main/scala/org/apache/spark/sql/jdbc/MySQLDialect.scala:
##########
@@ -176,6 +176,7 @@ private case object MySQLDialect extends JdbcDialect with
SQLConfHelper {
// See SPARK-35446: MySQL treats REAL as a synonym to DOUBLE by default
// We override getJDBCType so that FloatType is mapped to FLOAT instead
case FloatType => Option(JdbcType("FLOAT", java.sql.Types.FLOAT))
+ case StringType => Option(JdbcType("LONGTEXT", java.sql.Types.LONGVARCHAR))
Review Comment:
Before this, it's ```case StringType => Option(JdbcType("TEXT",
java.sql.Types.CLOB))```
--
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]