Create table and insert the query result into it.
the Table Describe, which may contain serde, storage handler etc.
the query whose result will be insert into the new relation
FileFormat for writing Hive tables.
Options for the Hive data source.
The wrapper class of Hive input and output schema properties
Command for writing the results of
query to file system.
whether the path specified in
storage is a local directory
storage format used to describe how the query result is stored.
the logical plan representing data to write to
whether overwrites existing directory
Command for writing data out to a Hive table.
the metadata of the table.
a map from the partition key to the partition value (optional). If the partition
value is optional, dynamic partition insert will be performed.
As an example,
INSERT INTO tbl PARTITION (a=1, b=2) AS ... would have
Map('a' -> Some('1'), 'b' -> Some('2'))
INSERT INTO tbl PARTITION (a=1, b) AS ...
Map('a' -> Some('1'), 'b' -> None)
the logical plan representing data to write to.
overwrite existing table or partitions.
If true, only write if the partition does not exist. Only valid for static partitions.
Transforms the input by forking and running the specified script.
the set of expression that should be passed to the script.
the command that should be executed.
the attributes that are produced by the script.