InsertIntoDir Unary Logical Operator¶
InsertIntoDir is a spark-sql-LogicalPlan.md#UnaryNode[unary logical operator] that represents sql/AstBuilder.md#withInsertInto[INSERT OVERWRITE DIRECTORY] SQL statement.
NOTE: InsertIntoDir is similar to InsertIntoTable.md[InsertIntoTable] logical operator.
[[resolved]] InsertIntoDir can never be spark-sql-LogicalPlan.md#resolved[resolved] (i.e. InsertIntoTable should not be part of a logical plan after analysis and is supposed to be <
[[logical-conversions]] .InsertIntoDir's Logical Resolutions (Conversions) [cols="30,70",options="header",width="100%"] |=== | Logical Command | Description
| hive/InsertIntoHiveDirCommand.md[InsertIntoHiveDirCommand] | [[InsertIntoHiveDirCommand]] When hive/HiveAnalysis.md[HiveAnalysis] logical resolution rule transforms InsertIntoDir with a Hive table
| InsertIntoDataSourceDirCommand | [[InsertIntoDataSourceDirCommand]] When DataSourceAnalysis logical resolution rule transforms InsertIntoDir with a Spark table
|===
[[output]] InsertIntoDir has no output columns.
Creating Instance¶
InsertIntoDir takes the following to be created:
- [[isLocal]]
isLocalFlag - [[storage]] CatalogStorageFormat
- [[provider]] Table provider
- [[child]] Child logical operator
- [[overwrite]]
overwriteFlag (default:true)