Skip to content

TruncateTableExec Physical Operator

TruncateTableExec is a LeafV2CommandExec physical operator that represents the following logical operators at execution:

Creating Instance

TruncateTableExec takes the following to be created:

TruncateTableExec is created when:

Output Schema

Signature
output: Seq[Attribute]

output is part of the QueryPlan abstraction.

output is empty.

run

Signature
run(): Seq[InternalRow]

run is part of the V2CommandExec abstraction.

run requests the TruncatableTable to truncateTable followed by executing the refreshCache procedure.