cloud-fan commented on a change in pull request #34148:
URL: https://github.com/apache/spark/pull/34148#discussion_r728859873



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/jdbc/MySQLDialect.scala
##########
@@ -128,7 +128,7 @@ private case object MySQLDialect extends JdbcDialect with 
SQLConfHelper {
         indexProperties = indexProperties + " " + s"$k $v"
       }
     }
-    val iType = if (indexType.isEmpty) {
+    val iType = if (indexType == null || indexType.isEmpty) {

Review comment:
       or we can follow table provider and define a reserved index property key 
like `index_type`. If `USING index_type` is not specified, we don't put this 
key in the index properties.




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