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 parquet files" (#3703)

Reverts #3696 which breaks the build.
  • Loading branch information
vkorukanti committed Sep 21, 2024
1 parent cddde68 commit 5bfd99e
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 5bfd99e

Please sign in to comment.