Skip to content

Commit

Permalink
Databricks: Quote catalog and schema names in SQL statements (close #…
Browse files Browse the repository at this point in the history
  • Loading branch information
voropaevp committed Dec 1, 2022
1 parent c283f9f commit 6fd6e71
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ object Databricks {
}

private def qualify(tableName: String): String = tgt.catalog match {
case Some(catalog) => s"${catalog}.${tgt.schema}.$tableName"
case None => s"${tgt.schema}.$tableName"
case Some(catalog) => s"`${catalog}`.`${tgt.schema}`.$tableName"
case None => s"`${tgt.schema}`.$tableName"
}
}
Right(result)
Expand Down

0 comments on commit 6fd6e71

Please sign in to comment.