Skip to content

BatchTableWrite Flow Execution

BatchTableWrite is a FlowExecution that writes a batch DataFrame to a Table.

Creating Instance

BatchTableWrite takes the following to be created:

BatchTableWrite is created when:

Execute

FlowExecution
executeInternal(): Future[Unit]

executeInternal is part of the FlowExecution abstraction.

executeInternal activates the configuration properties in the current SparkSession.

executeInternal requests this PipelineUpdateContext for the FlowProgressEventLogger to recordRunning with this ResolvedFlow.

executeInternal requests this DataflowGraph to re-analyze this ResolvedFlow to get the DataFrame (the logical query plan)

executeInternal executes append batch write asynchronously:

  1. Creates a DataFrameWriter for the batch query's logical plan (the DataFrame).
  2. Sets the write format to the format of this Table.
  3. In the end, executeInternal appends the rows to this Table (using DataFrameWriter.saveAsTable operator).

isStreaming

FlowExecution
isStreaming: Boolean

isStreaming is part of the FlowExecution abstraction.

isStreaming is always disabled (false).