-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Dynamic Partition Overwrite
1 parent
155bf40
commit ba48bbf
Showing
12 changed files
with
67 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
title: Dynamic Partition Overwrite | ||
nav: | ||
- index.md | ||
- ... |
2 changes: 1 addition & 1 deletion
2
.../DeltaDynamicPartitionOverwriteCommand.md → .../DeltaDynamicPartitionOverwriteCommand.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
hide: | ||
- toc | ||
--- | ||
|
||
# Dynamic Partition Overwrite | ||
|
||
**Dynamic Partition Overwrite** is a `DataFrameWriter` ([Spark SQL]({{ book.spark_sql }}/DataFrameWriter)) feature that allows to only overwrite partitions (of a partitioned delta table) that have data written into it. | ||
|
||
Dynamic Partition Overwrite can be enabled system-wide using [spark.databricks.delta.dynamicPartitionOverwrite.enabled](../configuration-properties/index.md#dynamicPartitionOverwrite.enabled) configuration property. | ||
|
||
??? note "DeltaIllegalArgumentException" | ||
It is a [DeltaIllegalArgumentException](../spark-connector/DeltaWriteOptionsImpl.md#isDynamicPartitionOverwriteMode) for [spark.databricks.delta.dynamicPartitionOverwrite.enabled](../configuration-properties/index.md#dynamicPartitionOverwrite.enabled) configuration property disabled yet the Dynamic Partition Overwrite Mode is [dynamic](../spark-connector/DeltaOptions.md#DYNAMIC). | ||
|
||
!!! note "Conflicts with `replaceWhere`" | ||
Dynamic Partition Overwrite cannot be used with [replaceWhere](../spark-connector/options.md#replaceWhere) option as they both specify which data to overwrite. | ||
|
||
## Partition Overwrite Mode | ||
|
||
**Partition Overwrite Mode** can be one of the following values (case-insensitive): | ||
|
||
* [dynamic](../spark-connector/DeltaOptions.md#DYNAMIC) | ||
* [static](../spark-connector/DeltaOptions.md#STATIC) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters