DataWritingCommand Contract — Logical Commands That Write Data
DataWritingCommand
is an extension of the Command contract for logical commands that write query data to a relation when executed.
DataWritingCommand
is resolved to a DataWritingCommandExec physical operator when BasicOperators execution planning strategy is executed (i.e. plan a logical plan to a physical plan).
Property | Description | ||
---|---|---|---|
|
The output column names of the analyzed input query plan Used when |
||
|
The logical query plan representing the data to write (i.e. whose result will be inserted into a relation) Used when |
||
|
Executes the command Used when:
|
When requested for the child nodes, DataWritingCommand
simply returns the logical query plan.
DataWritingCommand
defines custom performance metrics.
Key | Name (in web UI) | Description |
---|---|---|
|
number of written files |
|
|
bytes of written output |
|
|
number of output rows |
|
|
number of dynamic part |
The performance metrics are used when:
-
DataWritingCommand
is requested for the BasicWriteJobStatsTracker -
DataWritingCommandExec
physical operator is requested for the metrics
DataWritingCommand | Description |
---|---|
basicWriteJobStatsTracker
Method
1 2 3 4 5 |
basicWriteJobStatsTracker(hadoopConf: Configuration): BasicWriteJobStatsTracker |
basicWriteJobStatsTracker
simply creates and returns a new BasicWriteJobStatsTracker (with the given Hadoop Configuration
and the metrics).
Note
|
|
Output Columns — outputColumns
Method
1 2 3 4 5 |
outputColumns: Seq[Attribute] |
outputColumns
…FIXME
Note
|
|