TimeTravel¶
TimeTravel
is a leaf logical operator (LeafNode) for RESTORE command to time travel the child relation to the given timestamp or version.
Creating Instance¶
TimeTravel
takes the following to be created:
- Relation (as a LogicalPlan)
- Timestamp (Expression)
- Version
- Creation Source ID
TimeTravel
is created when:
DeltaSqlAstBuilder
is requested to parse RESTORE commandDeltaTableOperations
is requested to executeRestore
Creation Source ID¶
TimeTravel
is given a Creation Source ID when created.
The Creation Source ID indicates the API used to time travel:
sql
whenDeltaSqlAstBuilder
is requested to parse RESTORE commanddeltaTable
whenDeltaTableOperations
is requested to executeRestore
Analysis Phase¶
TimeTravel
is resolved to DeltaTimeTravelSpec when DeltaAnalysis logical resolution rule is resolving RestoreTableStatement unary logical operator.