Repository navigation
docs: make transaction examples opt in and runnable - #1088
Open
aakash-saravanan-db wants to merge 1 commit into
Open
aakash-saravanan-db wants to merge 1 commit into
aakash-saravanan-db wants to merge 1 commit into
Conversation
Scope transaction guidance to the explicit opt-in and document compatibility defaults. Create catalog-managed Delta tables in autocommit mode and restore that mode before verifying the transfer results. Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
aakash-saravanan-db
temporarily deployed
to
azure-prod
December 2, 2026 23:55 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
December 2, 2026 23:55 — with
GitHub Actions
Inactive
This branch was previously 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 type of PR is this?
Description
The transaction examples omit
ignore_transactions=False. With the defaultTrue, assigningconnection.autocommitand callingcommit()are no-ops, whilerollback()raisesNotSupportedError. Following the examples therefore does not enable manual transactions.Add the opt-in to every transaction connection example and scope the guide's behavior to enabled transaction APIs. The runnable example creates catalog-managed Delta tables in autocommit mode, runs the transfer DML in manual mode, and restores autocommit before verifying the balances and transfer. Correct the guide's table property to
delta.feature.catalogManaged='supported'. Runtime behavior and dependencies are unchanged.How is this tested?
Python syntax parsing passed for the runnable example and all 20 Python snippets in the guide and README. All three transaction connection examples explicitly opt in. Black and diff whitespace checks passed, as did the pre-commit and commit-message secret scans; hook lint selection skipped this unrecognized project.
The corrected example passed once on staging Databricks SQL in each of the Thrift and
use_kernel=Truemodes with installed connector 4.10.0 and kernel 1.5.0. Only runtime connection settings and unique table identifiers were substituted in a disposable copy. Assertions checked balances of 900 and 600, the transfer of 100, visibility from an independent connection, and the catalog-managed table property. All four owned tables were removed. The existing 40-case MST suite was not rerun.Related Tickets & Documents
None.