Repository navigation
Databricks: add Delta table version sensor (#74195) - #74550
Open
garvit-arora wants to merge 1 commit into
Open
garvit-arora wants to merge 1 commit into
garvit-arora wants to merge 1 commit into
Conversation
Co-authored-by: Aditya Goyal <adityagoyal@Adityas-MacBook-Air-4.local>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Adds the first, standalone slice of #74195:
DatabricksDeltaTableVersionSensorand its deferrable trigger. The sensor observesDESCRIBE HISTORY, enrolls a baseline or waits for an explicit target, emits version and table-identity provenance, and supports the provider's existing Unity Catalog asset URI.This branch incorporates the public implementation foundation from #74225 with attribution in the commit, then addresses its latest blocking review findings:
mode="reschedule"now requiresbaseline_versionortarget_version, so process-local enrollment cannot restart forever.target_versionvalues are converted to integers before comparison.OPTIMIZE,VACUUM START, andVACUUM ENDdo not cause a data-change wakeup. The policy and scan depth are configurable.The external producer/checkpointed delivery slice remains out of scope for this PR.
Validation
python -m compileallcompleted for the changed sensor, trigger, and tests.git diff --checkpassed.pykerberos, which requires unavailablegssapi/gssapi.hheaders. No test failure was reached.AI use
I used an AI coding assistant for implementation support and reviewed the resulting changes.