TruncateTableExec Physical Operator¶
TruncateTableExec
is a LeafV2CommandExec
physical operator that represents the following logical operators at execution:
- DeleteFromTable logical operator with a DataSourceV2ScanRelation over a TruncatableTable table with no
WHERE
clause TRUNCATE TABLE
SQL command (with noPARTITION
clause)
Creating Instance¶
TruncateTableExec
takes the following to be created:
- TruncatableTable
- Refresh Cache Procedure (
() => Unit
)
TruncateTableExec
is created when:
- DataSourceV2Strategy execution planning strategy is executed
Output Schema¶
output
is empty.
Executing Command¶
run
requests the TruncatableTable to truncateTable. Only if successful, run
executes this refreshCache procedure.
run
returns an empty collection.