René's URL Explorer Experiment


Title: bigquery.StructQueryParameter should be able to contain structs and arrays · Issue #2905 · googleapis/google-cloud-python · GitHub

Open Graph Title: bigquery.StructQueryParameter should be able to contain structs and arrays · Issue #2905 · googleapis/google-cloud-python

X Title: bigquery.StructQueryParameter should be able to contain structs and arrays · Issue #2905 · googleapis/google-cloud-python

Description: I commented that structs can contain structs and arrays, but the client library does not support it yet. I'm testing this on the master branch. Sample code: from google.cloud import bigquery client = bigquery.Client() query = 'SELECT @st...

Open Graph Description: I commented that structs can contain structs and arrays, but the client library does not support it yet. I'm testing this on the master branch. Sample code: from google.cloud import bigquery client...

X Description: I commented that structs can contain structs and arrays, but the client library does not support it yet. I'm testing this on the master branch. Sample code: from google.cloud import bigquery cl...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bigquery.StructQueryParameter should be able to contain structs and arrays","articleBody":"I [commented](https://github.com/GoogleCloudPlatform/google-cloud-python/pull/2892#discussion_r93489645) that structs can contain structs and arrays, but the client library does not support it yet.\r\n\r\nI'm testing this on the master branch.\r\n\r\nSample code:\r\n\r\n```python\r\nfrom google.cloud import bigquery\r\n\r\nclient = bigquery.Client()\r\nquery = 'SELECT @struct_value AS s;'\r\nquery_results = client.run_sync_query(\r\n    query,\r\n    query_parameters=[\r\n        bigquery.StructQueryParameter(\r\n            'struct_value',\r\n            bigquery.StructQueryParameter(\r\n                'x',\r\n                bigquery.ScalarQueryParameter('a', 'INT64', 42),\r\n                bigquery.ScalarQueryParameter('b', 'STRING', 'what is the answer?')))\r\n    ])\r\n```\r\n\r\n\u003cdetails>\r\n\u003csummary>Stacktrace\u003c/summary>\r\n\u003cpre>\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n\u003cipython-input-5-97d23efb85a5> in \u003cmodule>()\r\n      9                 'x',\r\n     10                 bigquery.ScalarQueryParameter('a', 'INT64', 42),\r\n---> 11                 bigquery.ScalarQueryParameter('b', 'STRING', 'what is the answer?')))\r\n     12     ])\r\n\r\n/Users/swast/venvs/google-cloud-python/lib/python3.5/site-packages/google_cloud_bigquery-0.22.1-py3.5.egg/google/cloud/bigquery/_helpers.py in __init__(self, name, *sub_params)\r\n    532         self.name = name\r\n    533         self.struct_types = OrderedDict(\r\n--> 534             (sub.name, sub.type_) for sub in sub_params)\r\n    535         self.struct_values = {sub.name: sub.value for sub in sub_params}\r\n    536 \r\n\r\n/Users/swast/venvs/google-cloud-python/lib/python3.5/site-packages/google_cloud_bigquery-0.22.1-py3.5.egg/google/cloud/bigquery/_helpers.py in \u003cgenexpr>(.0)\r\n    532         self.name = name\r\n    533         self.struct_types = OrderedDict(\r\n--> 534             (sub.name, sub.type_) for sub in sub_params)\r\n    535         self.struct_values = {sub.name: sub.value for sub in sub_params}\r\n    536 \r\n\r\nAttributeError: 'StructQueryParameter' object has no attribute 'type_'\r\n\u003c/pre>\r\n\u003c/details>\r\n\r\nDitto for a struct that contains an array:\r\n\r\n```python\r\nquery_results = client.run_sync_query(\r\n    query,\r\n    query_parameters=[\r\n        bigquery.StructQueryParameter(\r\n            'struct_value',\r\n            bigquery.ArrayQueryParameter(\r\n                'y',\r\n                'STRING',\r\n                ['hello', 'world']))\r\n    ])\r\n```\r\n\r\n\u003cdetails>\r\n\u003csummary>Stacktrace\u003c/summary>\r\n\u003cpre>\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n\u003cipython-input-7-be6f219adb88> in \u003cmodule>()\r\n      8                 'y',\r\n      9                 'STRING',\r\n---> 10                 ['hello', 'world']))\r\n     11     ])\r\n\r\n/Users/swast/venvs/google-cloud-python/lib/python3.5/site-packages/google_cloud_bigquery-0.22.1-py3.5.egg/google/cloud/bigquery/_helpers.py in __init__(self, name, *sub_params)\r\n    532         self.name = name\r\n    533         self.struct_types = OrderedDict(\r\n--> 534             (sub.name, sub.type_) for sub in sub_params)\r\n    535         self.struct_values = {sub.name: sub.value for sub in sub_params}\r\n    536 \r\n\r\n/Users/swast/venvs/google-cloud-python/lib/python3.5/site-packages/google_cloud_bigquery-0.22.1-py3.5.egg/google/cloud/bigquery/_helpers.py in \u003cgenexpr>(.0)\r\n    532         self.name = name\r\n    533         self.struct_types = OrderedDict(\r\n--> 534             (sub.name, sub.type_) for sub in sub_params)\r\n    535         self.struct_values = {sub.name: sub.value for sub in sub_params}\r\n    536 \r\n\r\nAttributeError: 'ArrayQueryParameter' object has no attribute 'type_'\r\n\u003c/pre>\r\n\u003c/details>\r\n\r\n","author":{"url":"https://github.com/tswast","@type":"Person","name":"tswast"},"datePublished":"2016-12-28T21:26:51Z","url":"https://github.com/googleapis/google-cloud-python/issues/2905"}

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:5945e3a1-2f28-8763-c9b3-2a60d1fcb0f5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC888:2FE0A8:90F052:CCFBCA:6AFE1DE5
html-safe-nonce4e9b91982a158a0c71b2e48a75ad6d764df0a84ffc132e2b9eb96161e468a93d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODg4OjJGRTBBODo5MEYwNTI6Q0NGQkNBOjZBRkUxREU1IiwidmlzaXRvcl9pZCI6Ijc1NzEyNDY4Mzc0MTYyMDU3OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac85879612d8093d2188548ddcf89040f22840f70b8b6ccea6b4ab3d7d1d7e9e25
hovercard-subject-tagissue:197918429
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/2905/issue_layout
twitter:imagehttps://opengraph.githubassets.com/81817ecdd68f288da17ad8429ff827be772e575668af529b1db344ec90320c28/googleapis/google-cloud-python/issues/2905
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/81817ecdd68f288da17ad8429ff827be772e575668af529b1db344ec90320c28/googleapis/google-cloud-python/issues/2905
og:image:altI commented that structs can contain structs and arrays, but the client library does not support it yet. I'm testing this on the master branch. Sample code: from google.cloud import bigquery client...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametswast
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/2905#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F2905
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%2F2905
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/2905
Reloadhttps://github.com/googleapis/google-cloud-python/issues/2905
Reloadhttps://github.com/googleapis/google-cloud-python/issues/2905
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/2905
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/2905
bigquery.StructQueryParameter should be able to contain structs and arrayshttps://github.com/googleapis/google-cloud-python/issues/2905#top
https://github.com/lukesneeringer
api: bigqueryIssues related to the BigQuery API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p1%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/tswast
tswasthttps://github.com/tswast
on Dec 28, 2016https://github.com/googleapis/google-cloud-python/issues/2905#issue-197918429
commentedhttps://github.com/GoogleCloudPlatform/google-cloud-python/pull/2892#discussion_r93489645
tswasthttps://github.com/tswast
api: bigqueryIssues related to the BigQuery API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%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
on Dec 28, 2016https://github.com/googleapis/google-cloud-python/issues/2905#event-906880441
danoscarmikehttps://github.com/danoscarmike
priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p1%22
Status: Acknowledgedhttps://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22Status%3A%20Acknowledged%22
on Feb 28, 2017https://github.com/googleapis/google-cloud-python/issues/2905#event-980789694
bjwatsonhttps://github.com/bjwatson
lukesneeringerhttps://github.com/lukesneeringer
on Feb 28, 2017https://github.com/googleapis/google-cloud-python/issues/2905#event-980790683
https://github.com/tseaver
tseaverhttps://github.com/tseaver
on May 16, 2017https://github.com/googleapis/google-cloud-python/issues/2905#issuecomment-301893689
#3180https://github.com/googleapis/google-cloud-python/pull/3180
tseaverhttps://github.com/tseaver
completedhttps://github.com/googleapis/google-cloud-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 16, 2017https://github.com/googleapis/google-cloud-python/issues/2905#event-1084798601
Sign up for freehttps://github.com/signup?return_to=https://github.com/googleapis/google-cloud-python/issues/2905
Sign in to commenthttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/2905
lukesneeringerhttps://github.com/lukesneeringer
api: bigqueryIssues related to the BigQuery API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p1%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.