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:
DeltaSqlAstBuilderis requested to parse RESTORE commandDeltaTableOperationsis 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:
sqlwhenDeltaSqlAstBuilderis requested to parse RESTORE commanddeltaTablewhenDeltaTableOperationsis requested to executeRestore
Analysis Phase¶
TimeTravel is resolved to DeltaTimeTravelSpec when DeltaAnalysis logical resolution rule is resolving RestoreTableStatement unary logical operator.