-
Notifications
You must be signed in to change notification settings - Fork 114
Replace name-mangled helpers with single-underscore methods #881
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
Merged
laughingman7743
merged 1 commit into
master
from
refactor/879-single-underscore-helpers
Sep 28, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Self-review round two: claims, callers, and operational behavior. Result: FINDINGS in the PR description only; corrected. No code changes.
Scope:
git diff 7b77a536342b00694a9e76c4edf9b4811d47bca0..f4cc848b8502cb4292ca932b8341cf898728454d, plus the PR body, commit message, and changed docstrings.Claims checked:
git grep -nE "def __[a-z0-9_]*[a-z0-9]\(" <sha> -- pyathena/returns 16 at the base and 0 at the head._poll/_cancel/_get_query_executionalready do".aio/common.py:90,:139, and:166areasync defwith# type: ignore[override]._execute,_poll,_cancel,_get_query_execution,_find_previous_query_id, and_terminate_sessionunchanged (Backwards incompatible changes in 3.35 breaks dbt projects #734). The diff adds or removes nodefline for any of them._create_s3_file_system"the nameAthenaS3FSResultSetalready uses". Sees3fs/result_set.py:107._terminate_session_by_iddocstring: "session startup calls this synchronously in every cursor variant".AioSparkCursoralso starts its session inSparkBaseCursor.__init__, which runs sync, and it does not override_terminate_session_by_id.Corrections to the PR body:
self._Class__name. Reworded to "cannot override mangled helpers and can reuse them only through the mangled name".TERMINAL_STATESis a public addition. It now does: "The only public addition is theTERMINAL_STATESclass constant", noting thatAthenaCalculationExecutioninherits it.Existing and downstream callers:
dbt-labs/dbt-adapters(dbt-athena), run on 2026-09-28, found no definitions or uses of_poll_until_terminal,_get_query_results,_async_get_query_results,_build_get_query_results_request,_cancel_and_wait,_start_calculation_execution,_wait_for_calculation_start,_terminate_session_by_id, or_create_s3_file_system.TERMINAL_STATESonly as dbt-spark's and dbt-bigquery's own constants, which shows the search was working.AWS operator: the same APIs are called the same number of times. Polling cadence, retries, and interrupt and cancel paths are unchanged, and no quota or cost change is claimed.
Documentation: no docs page references the removed names;
git grepoverdocs/finds none.Evidence: