-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[Prototype][SPARK-53751][SDP] Explicit Checkpoint Location #52487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[Prototype][SPARK-53751][SDP] Explicit Checkpoint Location #52487
Conversation
val resolvedGraph = resolveGraph() | ||
if (context.fullRefreshTables.nonEmpty) { | ||
State.reset(resolvedGraph, context) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with explicit storage location for checkpoint, we shouldn't need to create the tables and obtain its path beforehand. resolvedGraph
should suffice.
case (true, _) => // Already performed reset for full refresh mv/st - no-op | ||
case (false, true) => // Incremental refresh of a st - no-op | ||
case (false, false) => // Incremental refresh of a mv - truncate | ||
context.spark.sql(s"TRUNCATE TABLE ${table.identifier.quotedString}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this match
is to avoid calling TRUNCATE
twice for full refresh MVs
What changes were proposed in this pull request?
Prototype PR for explicit checkpoint location that follows below format:
Backend changes should be mostly finalized, all tests should pass.
For user-facing API, use a
spark.sql.pipelines.storageRoot
for now, as it is easier to revert.Why are the changes needed?
To unblock development of sinks
Path toward supporting multi-flow
Does this PR introduce any user-facing change?
How was this patch tested?
Was this patch authored or co-authored using generative AI tooling?