Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lzlfred committed Sep 23, 2024
1 parent 437db30 commit 16c178c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,11 @@ case class CreateDeltaTableCommand(
if (txn.readVersion > -1L && isReplace && !dontOverwriteSchema) {
// When a table already exists, and we're using the DataFrameWriterV2 API to replace
// or createOrReplace a table, we blindly overwrite the metadata.
val newMetadata = getProvidedMetadata(table, schema.json)
var newMetadata = getProvidedMetadata(table, schema.json)
val updatedConfig = UniversalFormat.enforceDependenciesInConfiguration(
newMetadata.configuration,
txn.snapshot)
newMetadata = newMetadata.copy(configuration = updatedConfig)
txn.updateMetadataForNewTableInReplace(newMetadata)
}
}
Expand Down

0 comments on commit 16c178c

Please sign in to comment.