cloud-fan commented on a change in pull request #34236:
URL: https://github.com/apache/spark/pull/34236#discussion_r726732137
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/jdbc/MySQLDialect.scala
##########
@@ -127,10 +128,19 @@ private case object MySQLDialect extends JdbcDialect with
SQLConfHelper {
indexProperties = indexProperties + " " + s"$k $v"
}
}
-
+ val iType = if (indexType.isEmpty) {
+ ""
+ } else {
+ if (indexType.length > 1 && !indexType.equalsIgnoreCase("BTREE") &&
+ !indexType.equalsIgnoreCase("HASH")) {
+ throw new UnsupportedOperationException(s"Index Type $indexType is not
supported." +
Review comment:
do we have a test case for it?
--
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]