Skip to content

BaseCacheTableExec Physical Operators

BaseCacheTableExec is an extension of the LeafV2CommandExec abstraction for physical operators that can cache a query plan.

Contract (Subset)

Relation Name

relationName: String

The name of the table to cache


LogicalPlan to Cache

planToCache: LogicalPlan

LogicalPlan to cache



Executing Command

run(): Seq[InternalRow]

run is part of the V2CommandExec abstraction.

run requests the CacheManager (of the SharedState) to cache this logical query plan.

Unless isLazy, run performs eager caching (using Dataset.count action).

In the end, run returns an empty collection.