-
-
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.
Creating SetTransaction Action, Liquid Clustering and the DMLs
- Loading branch information
1 parent
0991019
commit 155bf40
Showing
11 changed files
with
164 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# DeltaDynamicPartitionOverwriteCommand | ||
|
||
`DeltaDynamicPartitionOverwriteCommand` is a `RunnableCommand` ([Spark SQL]({{ book.spark_sql }}/logical-operators/RunnableCommand/)) and a `V2WriteCommand` ([Spark SQL]({{ book.spark_sql }}/logical-operators/V2WriteCommand/)) for dynamic partition overwrite using [WriteIntoDelta](WriteIntoDelta.md). | ||
|
||
`DeltaDynamicPartitionOverwriteCommand` sets [partitionOverwriteMode](../spark-connector/options.md#partitionOverwriteMode) option as `DYNAMIC` before [write](#run). | ||
|
||
!!! note "Workaround" | ||
`DeltaDynamicPartitionOverwriteCommand` is a workaround of Spark SQL not supporting V1 fallback for dynamic partition overwrite. | ||
|
||
## Creating Instance | ||
|
||
`DeltaDynamicPartitionOverwriteCommand` takes the following to be created: | ||
|
||
* <span id="table"> Delta Table (`NamedRelation`) | ||
* <span id="deltaTable"> [DeltaTableV2](../DeltaTableV2.md) | ||
* <span id="query"> Logical Query Plan (`LogicalPlan`) | ||
* <span id="writeOptions"> Write options (`Map[String, String]`) | ||
* <span id="isByName"> `isByName` flag | ||
* <span id="analyzedQuery"> Analyzed Logical Query Plan (`Option[LogicalPlan]`) | ||
|
||
`DeltaDynamicPartitionOverwriteCommand` is created when: | ||
|
||
* `DeltaAnalysis` logical resolution rule is requested to [resolve an OverwritePartitionsDynamic on a delta table](../DeltaAnalysis.md#apply) (`INSERT OVERWRITE` with dynamic partition overwrite) | ||
|
||
??? note "OverwritePartitionsDynamic Unary Logical Command" | ||
Learn more about `OverwritePartitionsDynamic` unary logical command in [The Internals of Spark SQL]({{ book.spark_sql }}/logical-operators/OverwritePartitionsDynamic/). | ||
|
||
## Executing Command { #run } | ||
|
||
??? note "RunnableCommand" | ||
|
||
```scala | ||
run( | ||
sparkSession: SparkSession): Seq[Row] | ||
``` | ||
|
||
`run` is part of the `RunnableCommand` ([Spark SQL]({{ book.spark_sql }}/logical-operators/RunnableCommand/#run)) abstraction. | ||
|
||
`run`...FIXME |
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,3 @@ | ||
# ClusteringMetadataDomain | ||
|
||
`ClusteringMetadataDomain` is...FIXME |
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,3 @@ | ||
# JsonMetadataDomain | ||
|
||
`JsonMetadataDomain` is...FIXME |
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,3 @@ | ||
# JsonMetadataDomainUtils | ||
|
||
`JsonMetadataDomainUtils` is...FIXME |
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