Skip to content

Commit

Permalink
Fix create external table statement for delta tables
Browse files Browse the repository at this point in the history
  • Loading branch information
berna396 committed Jan 31, 2024
1 parent 549df77 commit 260ebaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AthenaCatalogueService(implicit val region: Regions) extends Logging {
private def createTableStatement(dbName: String, tableName: String, s3_location: String) = {

s"CREATE EXTERNAL TABLE IF NOT EXISTS " +
s"$dbName.$tableName" +
s"`$dbName`.`$tableName`" +
s" LOCATION '$s3_location'" +
"TBLPROPERTIES ('table_type' = 'DELTA')"

Expand Down

0 comments on commit 260ebaf

Please sign in to comment.