outputColumnNames: Seq[String]
DataWritingCommand Contract — Logical Commands That Write Query Data
DataWritingCommand
is an extension of the Command contract for logical commands that write the result of executing query (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 analyzed logical query plan representing the data to write (i.e. whose result will be inserted into a relation) Used when |
|
Executes the command to write query data (the result of executing structured query) 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 |
---|---|
Commands that write query result as Hive files (i.e. InsertIntoHiveDirCommand and InsertIntoHiveTable) |
basicWriteJobStatsTracker
Method
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
outputColumns: Seq[Attribute]
outputColumns
…FIXME
Note
|
|