Repository navigation
Bridge SQL connection access between R and Python - #186
Open
t-kalinowski wants to merge 11 commits into
Open
t-kalinowski wants to merge 11 commits into
t-kalinowski wants to merge 11 commits into
Conversation
Apply the existing test-only DuckDB snapshot to direct and MXC SQL scenarios. Assert the selected version before the long query so cold caches cannot silently introduce the known Arrow cancellation limitation. Preserve production defaults, interruption deadlines, and exact results.
Queue stdin while the replacement cell is held at its checkpoint, then release it and collect the complete result. Preserve the exact output and idle-state assertions without assuming one response completes the cell.
Keep the required completion marker when a control-and-cell response is split across polls. Exercise the split with a gated native R startup cell and select the same contract in related restart continuations.
Refresh generated SQL tracebacks and tool guidance for the combined sources.
t-kalinowski
marked this pull request as ready for review
October 31, 2026 21:20
Member
Author
|
No findings found by gpt-6-astra with reasoning effort max Reviewed commit: |
Regenerate the companion transcript after SQL connection bridging shifted the embedded Python evaluator by eleven lines. Preserve complete diagnostics.
Member
Author
|
No findings found by gpt-6-astra with reasoning effort max Reviewed commit: |
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.
Allow
.console$sql_connection()and_console.sql_connection()to retrieve and select connections owned by either runtime through reticulate, so using the other runtime's helper no longer fails because of ownership. R receives a proxy for Python connections; Python receives an opaque R handle it can pass to R functions. R remains the default SQL owner when available.Connections keep their native APIs and ownership. Getters preserve unread results; selecting a connection discards them without closing the connection or committing its transaction. Reset restores the managed catalog, and result retrieval still uses the owning runtime.
Internally, a private reticulate callback keeps SQL access independent of a Python variable named
r. Update the documentation and model guidance, with public regressions for connection identity, selection, reset, result lifetime, and transactions.Validated on macOS with 106 public transcript cases (163 executions), including named-session isolation and structured SQL errors, plus
scripts/format,git diff --check, andscripts/check. Windows and Linux were not run locally.