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 TruncateTable
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.
run¶
run
requests the TruncatableTable to truncateTable followed by executing the refreshCache procedure.