René's URL Explorer Experiment


Title: BigQuery: Field 'bar' is specified as REPEATED in provided schema which does not match REQUIRED as specified in the file. · Issue #17 · googleapis/python-bigquery · GitHub

Open Graph Title: BigQuery: Field 'bar' is specified as REPEATED in provided schema which does not match REQUIRED as specified in the file. · Issue #17 · googleapis/python-bigquery

X Title: BigQuery: Field 'bar' is specified as REPEATED in provided schema which does not match REQUIRED as specified in the file. · Issue #17 · googleapis/python-bigquery

Description: I have an issue where it is not possible to upload a Pandas DataFrame with a repeated field to BigQuery. It is very much related to an issue I've had earlier: googleapis/google-cloud-python#8093 Since that has been resolved (by being abl...

Open Graph Description: I have an issue where it is not possible to upload a Pandas DataFrame with a repeated field to BigQuery. It is very much related to an issue I've had earlier: googleapis/google-cloud-python#8093 Si...

X Description: I have an issue where it is not possible to upload a Pandas DataFrame with a repeated field to BigQuery. It is very much related to an issue I've had earlier: googleapis/google-cloud-python#809...

Opengraph URL: https://github.com/googleapis/python-bigquery/issues/17

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BigQuery: Field 'bar' is specified as REPEATED in provided schema which does not match REQUIRED as specified in the file.","articleBody":"I have an issue where it is not possible to upload a Pandas DataFrame with a repeated field to BigQuery. It is very much related to an issue I've had earlier: https://github.com/googleapis/google-cloud-python/issues/8093\r\n\r\nSince that has been resolved (by being able to specify the schema), I've created a separate issue. I also couldn't find issues related to REPEATED fields.\r\n\r\n#### Environment details\r\nMac OS X 10.14.5\r\nPython 3.6.8\r\n\r\nPackages:\r\n```\r\ngoogle-api-core==1.14.2\r\ngoogle-auth==1.6.3\r\ngoogle-cloud-bigquery==1.19.0\r\ngoogle-cloud-core==1.0.3\r\ngoogle-cloud-iam==0.2.1\r\ngoogle-cloud-logging==1.12.1\r\ngoogle-resumable-media==0.3.3\r\ngoogleapis-common-protos==1.6.0\r\n```\r\n\r\n#### Steps to reproduce\r\n1. Have a table with a REPEATED field\r\n2. Upload a Pandas DataFrame with a repeated field to this table\r\n3. Error\r\n\r\nAlso:\r\n- Getting the schema from BigQuery and using that in the `JobConfig` doesn't change the error.\r\n\r\n#### Code example\r\n```python\r\nimport pandas as pd\r\nfrom google.cloud import bigquery\r\n\r\n\r\nPROJECT = \"MY-PROJECT\"\r\nDATASET = \"MY_DATASET\"\r\nTABLE = \"MY_TABLE\"\r\n\r\n\r\n# My table schema\r\nschema = [\r\n    bigquery.SchemaField(\"foo\", \"INTEGER\", mode=\"REQUIRED\"),\r\n    bigquery.SchemaField(\"bar\", \"FLOAT\", mode=\"REPEATED\"),\r\n]\r\n\r\n\r\n# Set everything up\r\nclient = bigquery.Client(PROJECT)\r\ndataset_ref = client.dataset(DATASET)\r\ntable_ref = dataset_ref.table(TABLE)\r\n\r\n\r\n# Delete the table if exists\r\nprint(\"Deleting table if exists...\")\r\nclient.delete_table(table_ref, not_found_ok=True)\r\n\r\n\r\n# Create the table\r\nprint(\"Creating table...\")\r\ntable = bigquery.Table(table_ref, schema=schema)\r\ntable.time_partitioning = bigquery.TimePartitioning(\r\n    type_=bigquery.TimePartitioningType.DAY\r\n)\r\ntable = client.create_table(table, exists_ok=True)\r\n\r\nprint(\"Table schema:\")\r\nprint(table.schema)\r\n\r\nprint(\"Table partitioning:\")\r\nprint(table.time_partitioning)\r\n\r\n# Upload data to partition\r\ntable_partition = TABLE + \"$20190522\"\r\ntable_ref = dataset_ref.table(table_partition)\r\n\r\ndf = pd.DataFrame({\"foo\": [1, 2, 3], \"bar\": [[2.0, 3.0], [3.0, 4.0], [4.0, 5.0]]})\r\n\r\njob_config = bigquery.LoadJobConfig(schema=schema)\r\nclient.load_table_from_dataframe(df, table_ref, job_config=job_config).result()\r\n```\r\n\r\n#### Stack trace\r\n```\r\nTraceback (most recent call last):\r\n  File \"test.py\", line 51, in \u003cmodule>\r\n    client.load_table_from_dataframe(df, table_ref, job_config=job_config).result()\r\n  File \"google/cloud/bigquery/job.py\", line 734, in result\r\n    return super(_AsyncJob, self).result(timeout=timeout)\r\n  File \"google/api_core/future/polling.py\", line 127, in result\r\n    raise self._exception\r\ngoogle.api_core.exceptions.BadRequest: 400 Error while reading data, error message: \r\n\r\nProvided schema is not compatible with the file 'prod-scotty-******'. \r\n\r\nField 'bar' is specified as REPEATED in provided schema \r\nwhich does not match REQUIRED as specified in the file.\r\n```\r\n","author":{"url":"https://github.com/timocb","@type":"Person","name":"timocb"},"datePublished":"2019-09-11T08:51:38Z","url":"https://github.com/googleapis/python-bigquery/issues/17"}

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:b3bd5a63-51ce-722d-678d-0b2d2d03440e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC27E:39556A:E4BEAE:136015A:6AFE7C70
html-safe-nonceec80ce929db10e84c34861f7b1998974c7b9b7f6d8f1b43272a5e2f96bad3860
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjdFOjM5NTU2QTpFNEJFQUU6MTM2MDE1QTo2QUZFN0M3MCIsInZpc2l0b3JfaWQiOiI2OTk3ODcxMTMwMDU2NzUyMjQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf9dc0d7fe01a0a6ae258960ad579efd89e9d4125f476986edf512a896c0f32b5
hovercard-subject-tagissue:559705632
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/python-bigquery/17/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dc2df4533bc405c3ac57d9afc967a43c31b0e8b0a688a8aa46743874d5003b9d/googleapis/python-bigquery/issues/17
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dc2df4533bc405c3ac57d9afc967a43c31b0e8b0a688a8aa46743874d5003b9d/googleapis/python-bigquery/issues/17
og:image:altI have an issue where it is not possible to upload a Pandas DataFrame with a repeated field to BigQuery. It is very much related to an issue I've had earlier: googleapis/google-cloud-python#8093 Si...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametimocb
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/googleapis/python-bigquery git https://github.com/googleapis/python-bigquery.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id226992475
octolytics-dimension-repository_nwogoogleapis/python-bigquery
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id226992475
octolytics-dimension-repository_network_root_nwogoogleapis/python-bigquery
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
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/googleapis/python-bigquery/issues/17#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-bigquery%2Fissues%2F17
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%2Fpython-bigquery%2Fissues%2F17
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%2Fpython-bigquery
Reloadhttps://github.com/googleapis/python-bigquery/issues/17
Reloadhttps://github.com/googleapis/python-bigquery/issues/17
Reloadhttps://github.com/googleapis/python-bigquery/issues/17
googleapishttps://github.com/googleapis
python-bigqueryhttps://github.com/googleapis/python-bigquery
Codehttps://github.com/googleapis/python-bigquery
Issueshttps://github.com/googleapis/python-bigquery/issues
Pull requestshttps://github.com/googleapis/python-bigquery/pulls
Actionshttps://github.com/googleapis/python-bigquery/actions
Projectshttps://github.com/googleapis/python-bigquery/projects
Security and qualityhttps://github.com/googleapis/python-bigquery/security
Insightshttps://github.com/googleapis/python-bigquery/insights
https://github.com/googleapis/python-bigquery
#35https://github.com/googleapis/python-bigquery/pull/35
BigQuery: Field 'bar' is specified as REPEATED in provided schema which does not match REQUIRED as specified in the file.https://github.com/googleapis/python-bigquery/issues/17#top
#35https://github.com/googleapis/python-bigquery/pull/35
https://github.com/plamut
🚨This issue needs some love.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22%3Arotating_light%3A%22
api: bigqueryIssues related to the googleapis/python-bigquery API.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/python-bigquery/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/python-bigquery/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/timocb
timocbhttps://github.com/timocb
on Sep 11, 2019https://github.com/googleapis/python-bigquery/issues/17#issue-559705632
googleapis/google-cloud-python#8093https://github.com/googleapis/google-cloud-python/issues/8093
https://github.com/plamut
plamuthttps://github.com/plamut
on Sep 11, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-530521547
https://github.com/plamut
plamuthttps://github.com/plamut
on Sep 16, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-531777464
iss_9207_upload.parquet.ziphttps://github.com/googleapis/google-cloud-python/files/3616423/iss_9207_upload.parquet.zip
https://github.com/timocb
timocbhttps://github.com/timocb
on Sep 17, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-532146763
@plamuthttps://github.com/plamut
this commenthttps://github.com/googleapis/google-cloud-python/issues/8142#issuecomment-519188354
https://github.com/plamut
plamuthttps://github.com/plamut
on Sep 17, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-532152817
@timocbhttps://github.com/timocb
load_table_from_json()https://github.com/googleapis/google-cloud-python/blob/c21ec2365bde59414cdd8505de82c1ccc5c676a0/bigquery/google/cloud/bigquery/client.py#L1630-L1640
https://github.com/timocb
timocbhttps://github.com/timocb
on Sep 17, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-532224639
@plamuthttps://github.com/plamut
https://github.com/tswast
tswasthttps://github.com/tswast
on Sep 25, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-535114148
https://issuetracker.google.com/133415569https://issuetracker.google.com/133415569
https://github.com/plamut
plamuthttps://github.com/plamut
on Sep 25, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-535121887
https://github.com/tswast
tswasthttps://github.com/tswast
on Sep 25, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-535255038
https://github.com/googleapis/google-cloud-python/issues/8544https://github.com/googleapis/google-cloud-python/issues/8544
https://github.com/tswast
tswasthttps://github.com/tswast
on Nov 14, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-553986161
https://user-images.githubusercontent.com/247555/68879706-b47f0e80-06be-11ea-9b53-b2eb292570a4.png
https://github.com/tswast
tswasthttps://github.com/tswast
on Nov 14, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-553987270
https://github.com/tswast
tswasthttps://github.com/tswast
on Nov 14, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-553989321
https://fastparquet.readthedocs.io/en/latest/details.html#reading-nested-schemahttps://fastparquet.readthedocs.io/en/latest/details.html#reading-nested-schema
tswasthttps://github.com/tswast
plamuthttps://github.com/plamut
on Nov 14, 2019https://github.com/googleapis/python-bigquery/issues/17#event-2799906085
https://github.com/tswast
tswasthttps://github.com/tswast
on Nov 14, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-553990226
https://github.com/apache/parquet-mrhttps://github.com/apache/parquet-mr
https://github.com/plamut
plamuthttps://github.com/plamut
on Nov 30, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-559990096
@tswasthttps://github.com/tswast
https://user-images.githubusercontent.com/1235663/69902368-00070d00-138d-11ea-8aef-b369e17c76b7.png
@timocbhttps://github.com/timocb
@timocbhttps://github.com/timocb
@tswasthttps://github.com/tswast
dataframe_to_parquet()https://github.com/googleapis/google-cloud-python/blob/93600571c88d31c94d5080af35541d27b0021443/bigquery/google/cloud/bigquery/_pandas_helpers.py#L456-L484
https://github.com/tswast
tswasthttps://github.com/tswast
on Dec 2, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-560395967
https://github.com/plamut
plamuthttps://github.com/plamut
on Dec 2, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-560400556
https://github.com/timocb
timocbhttps://github.com/timocb
on Dec 3, 2019https://github.com/googleapis/python-bigquery/issues/17#issuecomment-561055886
@timocbhttps://github.com/timocb
@plamuthttps://github.com/plamut
plamuthttps://github.com/plamut
googleapis/google-cloud-pythonhttps://github.com/googleapis/google-cloud-python
on Feb 4, 2020https://github.com/googleapis/python-bigquery/issues/17#event-3005992676
product-auto-labelhttps://github.com/apps/product-auto-label
api: bigqueryIssues related to the googleapis/python-bigquery API.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
on Feb 4, 2020https://github.com/googleapis/python-bigquery/issues/17#event-3005992803
plamuthttps://github.com/plamut
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/python-bigquery/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/python-bigquery/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
on Feb 4, 2020https://github.com/googleapis/python-bigquery/issues/17#event-3005993469
https://github.com/plamut
plamuthttps://github.com/plamut
on Feb 10, 2020https://github.com/googleapis/python-bigquery/issues/17#issuecomment-584234019
#35https://github.com/googleapis/python-bigquery/pull/35
plamuthttps://github.com/plamut
completedhttps://github.com/googleapis/python-bigquery/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#35https://github.com/googleapis/python-bigquery/pull/35
on Feb 10, 2020https://github.com/googleapis/python-bigquery/issues/17#event-3024263122
yoshi-automationhttps://github.com/yoshi-automation
🚨This issue needs some love.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22%3Arotating_light%3A%22
on Apr 7, 2020https://github.com/googleapis/python-bigquery/issues/17#event-3209768781
Sign up for freehttps://github.com/signup?return_to=https://github.com/googleapis/python-bigquery/issues/17
Sign in to commenthttps://github.com/login?return_to=https://github.com/googleapis/python-bigquery/issues/17
plamuthttps://github.com/plamut
🚨This issue needs some love.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22%3Arotating_light%3A%22
api: bigqueryIssues related to the googleapis/python-bigquery API.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/python-bigquery/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/python-bigquery/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.