urosstan-db commented on code in PR #46669:
URL: https://github.com/apache/spark/pull/46669#discussion_r1606929242


##########
sql/core/src/main/scala/org/apache/spark/sql/jdbc/MySQLDialect.scala:
##########
@@ -52,6 +52,27 @@ private case class MySQLDialect() extends JdbcDialect with 
SQLConfHelper {
     supportedFunctions.contains(funcName)
 
   class MySQLSQLBuilder extends JDBCSQLBuilder {
+    override def visitCast(expr: String, exprDataType: DataType, dataType: 
DataType): String = {
+      dataType match {
+        case _: IntegralType =>
+          // MySQL does not support cast to SHORT INT, BIGINT

Review Comment:
   nit: SHORT, INT



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