Skip to content

Commit

Permalink
impl
Browse files Browse the repository at this point in the history
  • Loading branch information
lzlfred committed Sep 20, 2024
1 parent 80457b0 commit c72e229
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,10 @@ case class CreateDeltaTableCommand(
// 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)
val updatedConfig = UniversalFormat.enforceDependenciesInConfiguration(
newMetadata.configuration,
txn.snapshot)
newMetadata = newMetadata.copy(configuration = updatedConfig)
txn.updateMetadataForNewTableInReplace(newMetadata)
}
}
Expand Down

0 comments on commit c72e229

Please sign in to comment.