Github user gatorsmile commented on a diff in the pull request: https://github.com/apache/spark/pull/19192#discussion_r138228826 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/jdbc/JdbcDialects.scala --- @@ -100,7 +100,7 @@ abstract class JdbcDialect extends Serializable { * @return The SQL query to use for checking the table. */ def getTableExistsQuery(table: String): String = { - s"SELECT * FROM $table WHERE 1=0" + s"SELECT * FROM ${quoteIdentifier(table)} WHERE 1=0" --- End diff -- This is a behavior change. After we quote the names, the table names become case sensitive in most RDBMS. We need at least a JDBC option to control it.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org