René's URL Explorer Experiment


Title: [spanner] RequestOptions.transaction_tag is unexpectedly mutated to '' when passed to snapshot.read() · Issue #17902 · googleapis/google-cloud-python · GitHub

Open Graph Title: [spanner] RequestOptions.transaction_tag is unexpectedly mutated to '' when passed to snapshot.read() · Issue #17902 · googleapis/google-cloud-python

X Title: [spanner] RequestOptions.transaction_tag is unexpectedly mutated to '' when passed to snapshot.read() · Issue #17902 · googleapis/google-cloud-python

Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue When passing a RequestOptions instance with a transaction_tag to snapshot.read(), the transaction_tag at...

Open Graph Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue When passing a RequestOptions instance with a transaction_tag to...

X Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue When passing a RequestOptions instance with a transaction_tag to...

Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/17902

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[spanner] RequestOptions.transaction_tag is unexpectedly mutated to '' when passed to snapshot.read()","articleBody":"### Determine this is the right repository\n\n- [x] I determined this is the correct repository in which to report this bug.\n\n### Summary of the issue\n\nWhen passing a RequestOptions instance with a transaction_tag to snapshot.read(), the transaction_tag attribute of the original object is unexpectedly mutated to '' (empty string).\n\n### API client name and version\n\ngoogle-cloud-spanner==3.69.0  \n\n### Reproduction steps: code\n\nfrom google.cloud import spanner\nfrom google.cloud.spanner_v1.types import RequestOptions\n\nspanner_client = spanner.Client()\ninstance = spanner_client.instance(\"your-instance-id\")\ndatabase = instance.database(\"your-database-id\")\n\nrequest_opts = RequestOptions(transaction_tag=\"tran1\")\n\nprint(\"Before read:\", request_opts.transaction_tag)\n\nwith database.snapshot() as snapshot:\n    snapshot.read(\n        table=\"Singers\",\n        columns=(\"SingerId\", \"FirstName\"),\n        keyset=spanner.KeySet(all_=True),\n        request_options=request_opts,\n    )\n\nprint(\"After read:\", request_opts.transaction_tag)\n\n\n### Reproduction steps: supporting files\n\n_No response_\n\n### Reproduction steps: actual results\n\nBefore read: tran1\nAfter read:\n\n### Reproduction steps: expected results\n\nBefore read: tran1\nAfter read: tran1\n\n### OS & version + platform\n\nWindows 11\n\n### Python environment\n\nPython 3.14.6\n\n### Python dependencies\n\npip list\nPackage                            Version\n---------------------------------- ---------\ncertifi                            2026.7.22\ncffi                               2.1.0\ncharset-normalizer                 3.4.9\ncryptography                       49.0.0\ngoogle-api-core                    2.33.0\ngoogle-auth                        2.56.2\ngoogle-cloud-core                  2.6.0\ngoogle-cloud-monitoring            2.31.0\ngoogle-cloud-spanner               3.69.0\ngoogle-cloud-storage               3.13.0\ngoogle-crc32c                      1.8.0\ngoogle-resumable-media             2.10.0\ngoogleapis-common-protos           1.75.0\ngrpc-google-iam-v1                 0.14.4\ngrpc-interceptor                   0.15.4\ngrpcio                             1.82.1\ngrpcio-status                      1.82.1\nidna                               3.18\nmmh3                               5.2.1\nopentelemetry-api                  1.44.0\nopentelemetry-resourcedetector-gcp 1.12.0a0\nopentelemetry-sdk                  1.44.0\nopentelemetry-semantic-conventions 0.65b0\npip                                26.1.2\nproto-plus                         1.28.2\nprotobuf                           7.35.1\npyasn1                             0.6.4\npyasn1_modules                     0.4.2\npycparser                          3.0\nrequests                           2.34.2\nsqlparse                           0.5.5\ntyping_extensions                  4.16.0\nurllib3                            2.7.0\n\n### Additional context\n\nPassing an object as an argument should not destructively mutate the caller's input object.","author":{"url":"https://github.com/cbh34680","@type":"Person","name":"cbh34680"},"datePublished":"2026-07-26T00:32:24Z","url":"https://github.com/googleapis/google-cloud-python/issues/17902"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:73cfcc0f-3cc8-1c47-2d3e-7cd2dd191992
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id85CC:38D83D:2489DE:3302C1:6AFE1A20
html-safe-noncecbcbbc523aab560162684b759cd88d78bd18baa26b47f695359134f48acb0e2c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUNDOjM4RDgzRDoyNDg5REU6MzMwMkMxOjZBRkUxQTIwIiwidmlzaXRvcl9pZCI6IjQyMTI1MzY2ODM0Mjc0MDQzMjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace0fe96d4b5f5a038dddaf14911fbb59c4c76528436e03e26ed5028f48163721e
hovercard-subject-tagissue:4978388424
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/17902/issue_layout
twitter:imagehttps://opengraph.githubassets.com/188edcf997450cb873724399c9315f6556b0d72c72e1d034909928de43fc96d6/googleapis/google-cloud-python/issues/17902
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/188edcf997450cb873724399c9315f6556b0d72c72e1d034909928de43fc96d6/googleapis/google-cloud-python/issues/17902
og:image:altDetermine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue When passing a RequestOptions instance with a transaction_tag to...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecbh34680
hostnamegithub.com
expected-hostnamegithub.com
Noned0525ab1464526bf4532a5551aa348cf100dff75ef808a96fc67a08b1d946aa9
turbo-cache-controlno-preview
go-importgithub.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id16316451
octolytics-dimension-repository_nwogoogleapis/google-cloud-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id16316451
octolytics-dimension-repository_network_root_nwogoogleapis/google-cloud-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasefef3993a71fa20f7be8e167132fbf9619bc66e12
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/googleapis/google-cloud-python/issues/17902#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F17902
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F17902
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fgoogle-cloud-python
Reloadhttps://github.com/googleapis/google-cloud-python/issues/17902
Reloadhttps://github.com/googleapis/google-cloud-python/issues/17902
Reloadhttps://github.com/googleapis/google-cloud-python/issues/17902
googleapishttps://github.com/googleapis
google-cloud-pythonhttps://github.com/googleapis/google-cloud-python
Codehttps://github.com/googleapis/google-cloud-python
Issues449 (449)https://github.com/googleapis/google-cloud-python/issues
Pull requests199 (199)https://github.com/googleapis/google-cloud-python/pulls
Discussionshttps://github.com/googleapis/google-cloud-python/discussions
Actionshttps://github.com/googleapis/google-cloud-python/actions
Projectshttps://github.com/googleapis/google-cloud-python/projects
Security and qualityhttps://github.com/googleapis/google-cloud-python/security
Insightshttps://github.com/googleapis/google-cloud-python/insights
https://github.com/googleapis/google-cloud-python
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/17902
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/17902
#18746https://github.com/googleapis/google-cloud-python/pull/18746
[spanner] RequestOptions.transaction_tag is unexpectedly mutated to '' when passed to snapshot.read()https://github.com/googleapis/google-cloud-python/issues/17902#top
#18746https://github.com/googleapis/google-cloud-python/pull/18746
https://github.com/steotia
api: spannerIssues related to the Spanner API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20spanner%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/cbh34680
cbh34680https://github.com/cbh34680
on Jul 26, 2026https://github.com/googleapis/google-cloud-python/issues/17902#issue-4978388424
cbh34680https://github.com/cbh34680
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
triage meI really want to be triaged.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22triage%20me%22
on Jul 26, 2026https://github.com/googleapis/google-cloud-python/issues/17902#event-28487558091
https://github.com/adityaanikam
adityaanikamhttps://github.com/adityaanikam
on Jul 29, 2026https://github.com/googleapis/google-cloud-python/issues/17902#issuecomment-5122386053
daniel-sanchehttps://github.com/daniel-sanche
steotiahttps://github.com/steotia
on Jul 31, 2026https://github.com/googleapis/google-cloud-python/issues/17902#event-28795553615
daniel-sanchehttps://github.com/daniel-sanche
api: spannerIssues related to the Spanner API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20spanner%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
triage meI really want to be triaged.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22triage%20me%22
on Jul 31, 2026https://github.com/googleapis/google-cloud-python/issues/17902#event-28795559977
Sign up for freehttps://github.com/signup?return_to=https://github.com/googleapis/google-cloud-python/issues/17902
Sign in to commenthttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/17902
steotiahttps://github.com/steotia
api: spannerIssues related to the Spanner API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20spanner%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.