-
-
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.
TransactionalWrite and WriteIntoDeltaLikes
- Loading branch information
1 parent
680356d
commit 9507770
Showing
4 changed files
with
73 additions
and
11 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 |
---|---|---|
@@ -1,3 +1,37 @@ | ||
# WriteIntoDeltaLike | ||
|
||
`WriteIntoDeltaLike` is...FIXME | ||
`WriteIntoDeltaLike` is an [abstraction](#contract) of [commands](#implementations) that can write data out into delta tables. | ||
|
||
## Contract (Subset) | ||
|
||
### writeAndReturnCommitData { #writeAndReturnCommitData } | ||
|
||
```scala | ||
writeAndReturnCommitData( | ||
txn: OptimisticTransaction, | ||
sparkSession: SparkSession, | ||
clusterBySpecOpt: Option[ClusterBySpec] = None, | ||
isTableReplace: Boolean = false): TaggedCommitData[Action] | ||
``` | ||
|
||
Used when: | ||
|
||
* `CreateDeltaTableCommand` is requested to [handleCreateTableAsSelect](create-table/CreateDeltaTableCommand.md#handleCreateTableAsSelect) | ||
* `WriteIntoDelta` is [executed](WriteIntoDelta.md#run) | ||
* `WriteIntoDeltaLike` is requested to [write data out](#write) | ||
|
||
## Implementations | ||
|
||
* [WriteIntoDelta](WriteIntoDelta.md) | ||
|
||
## Write Data Out { #write } | ||
|
||
```scala | ||
write( | ||
txn: OptimisticTransaction, | ||
sparkSession: SparkSession, | ||
clusterBySpecOpt: Option[ClusterBySpec] = None, | ||
isTableReplace: Boolean = false): Seq[Action] | ||
``` | ||
|
||
`write` [writeAndReturnCommitData](#writeAndReturnCommitData) and returns the [Action](../Action.md)s. |
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