René's URL Explorer Experiment


Title: BigQuery: structs not populated correctly in query parameters · Issue #2887 · googleapis/google-cloud-python · GitHub

Open Graph Title: BigQuery: structs not populated correctly in query parameters · Issue #2887 · googleapis/google-cloud-python

X Title: BigQuery: structs not populated correctly in query parameters · Issue #2887 · googleapis/google-cloud-python

Description: See documentation for structs in query parameters: https://cloud.google.com/bigquery/querying-data#using_structs_in_parameterized_queries Stacktrace $ python sync_query_params.py struct 7 hello Traceback (most recent call last): File "sy...

Open Graph Description: See documentation for structs in query parameters: https://cloud.google.com/bigquery/querying-data#using_structs_in_parameterized_queries Stacktrace $ python sync_query_params.py struct 7 hello Tra...

X Description: See documentation for structs in query parameters: https://cloud.google.com/bigquery/querying-data#using_structs_in_parameterized_queries Stacktrace $ python sync_query_params.py struct 7 hello Tra...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BigQuery: structs not populated correctly in query parameters","articleBody":"See documentation for structs in query parameters:\r\nhttps://cloud.google.com/bigquery/querying-data#using_structs_in_parameterized_queries\r\n\r\n- Stacktrace\r\n\r\n```\r\n$ python sync_query_params.py struct 7 hello\r\nTraceback (most recent call last):\r\n  File \"sync_query_params.py\", line 204, in \u003cmodule>\r\n    sync_query_struct_params(args.x, args.y)\r\n  File \"sync_query_params.py\", line 139, in sync_query_struct_params\r\n    query_results.run()\r\n  File \"/Users/swast/src/google-cloud-python/bigquery/google/cloud/bigquery/query.py\", line 360, in run\r\n    method='POST', path=path, data=self._build_resource())\r\n  File \"/Users/swast/venvs/bq-dml/lib/python3.5/site-packages/google/cloud/_http.py\", line 335, in api_request\r\n    error_info=method + ' ' + url)\r\ngoogle.cloud.exceptions.BadRequest: 400 Invalid query parameter type (POST https://www.googleapis.com/bigquery/v2/projects/cloud-samples-tests/queries)\r\n```\r\n\r\n- Code sample\r\n\r\nhttps://github.com/GoogleCloudPlatform/python-docs-samples/blob/tswast-bq/bigquery/cloud-client/sync_query_params.py#L129\r\n\r\nThe google-cloud-bigquery library produces a resource that looks like:\r\n\r\n```\r\n{\r\n  'name': 'struct_value',\r\n  'parameterValue': {\r\n    'structValues': {'y': 'hello', 'x': '7'}\r\n  },\r\n  'parameterType': {\r\n    'structTypes': [{'type': 'INT64', 'name': 'x'}, {'type': 'STRING', 'name': 'y'}]\r\n  }\r\n}\r\n```\r\n\r\nThe API expects a resource that looks like:\r\n\r\n```\r\n{\r\n      \"name\": \"struct_value\",\r\n      \"parameterType\": {\r\n        \"type\": \"STRUCT\",\r\n        \"structTypes\": [\r\n          {\r\n            \"name\": \"x\",\r\n            \"type\": {\r\n              \"type\": \"INT64\"\r\n            }\r\n          },\r\n          {\r\n            \"name\": \"y\",\r\n            \"type\": {\r\n              \"type\": \"STRING\"\r\n            }\r\n          }\r\n        ]\r\n      },\r\n      \"parameterValue\": {\r\n        \"structValues\": {\r\n          \"x\": {\r\n            \"value\": \"1\"\r\n          },\r\n          \"y\": {\r\n            \"value\": \"foo\"\r\n          }\r\n        }\r\n      }\r\n    }\r\n```\r\n\r\nNotice the missing `{ \"value\": \"my-value\" }` in the `structValues` in the request object produced by this library.","author":{"url":"https://github.com/tswast","@type":"Person","name":"tswast"},"datePublished":"2016-12-20T00:51:37Z","url":"https://github.com/googleapis/google-cloud-python/issues/2887"}

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:c5492c33-fe22-2679-034b-084d499de26f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE696:3C7AB6:5BA9F:7762B:6AFE50E3
html-safe-noncedce4f51591177d11931e388a6458477cdff69d8d9bac63fc00cf2dbfd03d1a36
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjk2OjNDN0FCNjo1QkE5Rjo3NzYyQjo2QUZFNTBFMyIsInZpc2l0b3JfaWQiOiI1Mjk1MzQ4Njc5NDkyNjUzMjgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5570b8cbeb3b1d985756a703e4c7b95086ecf2cb34f302b264051c913ce41816
hovercard-subject-tagissue:196558749
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/2887/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b584e41b3a0b7641dbc4304fcc3958c3fab48b7620ec6867eccea94a9f56dcb5/googleapis/google-cloud-python/issues/2887
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b584e41b3a0b7641dbc4304fcc3958c3fab48b7620ec6867eccea94a9f56dcb5/googleapis/google-cloud-python/issues/2887
og:image:altSee documentation for structs in query parameters: https://cloud.google.com/bigquery/querying-data#using_structs_in_parameterized_queries Stacktrace $ python sync_query_params.py struct 7 hello Tra...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametswast
hostnamegithub.com
expected-hostnamegithub.com
None894d3c8b932306ed8425e8dcbe0c1089667e487c5fe7b8a05d17e7b685207429
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
release44570ad53e12be09be8000af683c29166c4007cb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/googleapis/google-cloud-python/issues/2887#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F2887
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%2F2887
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/2887
Reloadhttps://github.com/googleapis/google-cloud-python/issues/2887
Reloadhttps://github.com/googleapis/google-cloud-python/issues/2887
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 requests200 (200)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/2887
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/2887
BigQuery: structs not populated correctly in query parametershttps://github.com/googleapis/google-cloud-python/issues/2887#top
https://github.com/tseaver
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
https://github.com/tswast
tswasthttps://github.com/tswast
on Dec 20, 2016https://github.com/googleapis/google-cloud-python/issues/2887#issue-196558749
https://cloud.google.com/bigquery/querying-data#using_structs_in_parameterized_querieshttps://cloud.google.com/bigquery/querying-data#using_structs_in_parameterized_queries
https://github.com/GoogleCloudPlatform/python-docs-samples/blob/tswast-bq/bigquery/cloud-client/sync_query_params.py#L129https://github.com/GoogleCloudPlatform/python-docs-samples/blob/tswast-bq/bigquery/cloud-client/sync_query_params.py#L129
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 20, 2016https://github.com/googleapis/google-cloud-python/issues/2887#event-899459787
tseaverhttps://github.com/tseaver
completedhttps://github.com/googleapis/google-cloud-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#2892https://github.com/googleapis/google-cloud-python/pull/2892
on Dec 21, 2016https://github.com/googleapis/google-cloud-python/issues/2887#event-901981571
richkadelhttps://github.com/richkadel
on May 6, 2017https://github.com/googleapis/google-cloud-python/issues/2887#event-1071634388
Conform to expected wire format for struct query parameters.https://github.com/richkadel/google-cloud-python/commit/a3321161126834484560bc736eafbd86dfc8ca2c
https://docs.github.com/articles/closing-issues-via-commit-messages
a332116https://github.com/richkadel/google-cloud-python/commit/a3321161126834484560bc736eafbd86dfc8ca2c
JustinBeckwithhttps://github.com/JustinBeckwith
tseaverhttps://github.com/tseaver
on Feb 1, 2021https://github.com/googleapis/google-cloud-python/issues/2887#event-4275443845
Sign up for freehttps://github.com/signup?return_to=https://github.com/googleapis/google-cloud-python/issues/2887
Sign in to commenthttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/2887
tseaverhttps://github.com/tseaver
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
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.