Skip to content

Commit

Permalink
Revert "Make CTAS with replace honor column mapping when writing firs…
Browse files Browse the repository at this point in the history
…t set of…"

This reverts commit 4c3c70b.
  • Loading branch information
vkorukanti authored Sep 20, 2024
1 parent 4c3c70b commit 30a61fa
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -733,10 +733,6 @@ 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 30a61fa

Please sign in to comment.