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

QueryPlan
output: Seq[Attribute]

output is part of the QueryPlan abstraction.

output is empty.

Executing Command

V2CommandExec
run(): Seq[InternalRow]

run is part of the V2CommandExec abstraction.

run requests the TruncatableTable to truncateTable. Only if successful, run executes this refreshCache procedure.

run returns an empty collection.