Created
June 2, 2022 05:58
-
-
Save lordlinus/9ba932558cdae5fa0762fc02eb1241ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fix SQL queries being returned as literals | |
import org.apache.spark.sql.jdbc.{JdbcDialect, JdbcDialects} | |
JdbcDialects.registerDialect(new JdbcDialect() { | |
override def canHandle(url: String): Boolean = url.toLowerCase.startsWith("jdbc:databricks:") | |
override | |
def quoteIdentifier(column: String): String = column | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment