DeltaScanWithRowTrackingEnabled¶
DeltaScanWithRowTrackingEnabled
is a Scala extractor object to match a scan on a delta table with Row Tracking enabled.
Scala Extractor Object
DeltaScanWithRowTrackingEnabled
is a Scala extractor object (with an unapply method) to match a pattern and extract data values.
Learn more in the Scala Language Specification and the Tour of Scala.
unapply¶
unapply(
plan: LogicalPlan): Option[LogicalRelation]
unapply
returns the given LogicalPlan
if it is a LogicalRelation
over a HadoopFsRelation
with a DeltaParquetFileFormat with Row Tracking enabled. Otherwise, unapply
returns None
(nothing matches).
unapply
is used when:
- GenerateRowIDs logical rule is executed