René's URL Explorer Experiment


Title: BigQuery: Field has changed mode from REQUIRED to NULLABLE · Issue #8093 · googleapis/google-cloud-python · GitHub

Open Graph Title: BigQuery: Field has changed mode from REQUIRED to NULLABLE · Issue #8093 · googleapis/google-cloud-python

X Title: BigQuery: Field has changed mode from REQUIRED to NULLABLE · Issue #8093 · googleapis/google-cloud-python

Description: I am encountering the following problem, when uploading a Pandas DataFrame to a partitioned table: Environment details API: BigQuery OS: macOS High Sierra 10.13.6 Python: 3.5.7 Packages: google-api-core==1.11.0 google-api-python-client==...

Open Graph Description: I am encountering the following problem, when uploading a Pandas DataFrame to a partitioned table: Environment details API: BigQuery OS: macOS High Sierra 10.13.6 Python: 3.5.7 Packages: google-api...

X Description: I am encountering the following problem, when uploading a Pandas DataFrame to a partitioned table: Environment details API: BigQuery OS: macOS High Sierra 10.13.6 Python: 3.5.7 Packages: google-api...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BigQuery: Field \u003cfield> has changed mode from REQUIRED to NULLABLE","articleBody":"I am encountering the following problem, when uploading a Pandas DataFrame to a partitioned table:\r\n\r\n#### Environment details\r\nAPI: BigQuery\r\nOS: macOS High Sierra 10.13.6\r\nPython: 3.5.7\r\nPackages:\r\n```\r\ngoogle-api-core==1.11.0\r\ngoogle-api-python-client==1.7.8\r\ngoogle-auth==1.6.3\r\ngoogle-auth-httplib2==0.0.3\r\ngoogle-cloud==0.34.0\r\ngoogle-cloud-bigquery==1.12.1\r\ngoogle-cloud-core==1.0.0\r\ngoogle-cloud-dataproc==0.3.1\r\ngoogle-cloud-datastore==1.8.0\r\ngoogle-cloud-storage==1.16.0\r\ngoogle-resumable-media==0.3.2\r\ngoogleapis-common-protos==1.5.10\r\nparquet==1.2\r\n```\r\n\r\n#### Steps to reproduce\r\nCreate a table on BigQuery with the following fields:\r\n- float_value, FLOAT, required\r\n- int_value, INTEGER, required\r\n\r\n#### Reproducible code example (includes creating table)\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\", \"FLOAT\", mode=\"REQUIRED\"),\r\n    bigquery.SchemaField(\"bar\", \"INTEGER\", mode=\"REQUIRED\"),\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, 4.0]})\r\nclient.load_table_from_dataframe(df, table_ref).result()\r\n```\r\n\r\n## Output:\r\n```\r\nDeleting table if exists...\r\nCreating table...\r\nTable schema:\r\n[SchemaField('foo', 'FLOAT', 'REQUIRED', None, ()), SchemaField('bar', 'INTEGER', 'REQUIRED', None, ())]\r\nTable partitioning:\r\nTimePartitioning(type=DAY)\r\nTraceback (most recent call last):\r\n  File \"\u003cmy-project>/bigquery_failure.py\", line 49, in \u003cmodule>\r\n    client.load_table_from_dataframe(df, table_ref).result()\r\n  File \"\u003cmy-env>/lib/python3.5/site-packages/google/cloud/bigquery/job.py\", line 732, in result\r\n    return super(_AsyncJob, self).result(timeout=timeout)\r\n  File \"\u003cmy-env>/lib/python3.5/site-packages/google/api_core/future/polling.py\", line 127, in result\r\n    raise self._exception\r\ngoogle.api_core.exceptions.BadRequest:\r\n400 Provided Schema does not match Table my-project:my_dataset.my_table$20190522.\r\nField bar has changed mode from REQUIRED to NULLABLE\r\n\r\nProcess finished with exit code 1\r\n```\r\n\r\n","author":{"url":"https://github.com/timocb","@type":"Person","name":"timocb"},"datePublished":"2019-05-22T12:52:04Z","url":"https://github.com/googleapis/google-cloud-python/issues/8093"}

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:cb0b0f93-1936-bb78-fe91-bd86d4a2fd60
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB6C4:2AB11:93F9A1:CF777D:6AFE1CD2
html-safe-nonced4e9534e7ee828816001550b9d11b811d43bb9adb1e034c635245178a8e17fd0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkM0OjJBQjExOjkzRjlBMTpDRjc3N0Q6NkFGRTFDRDIiLCJ2aXNpdG9yX2lkIjoiMzIwNjQ4MzA2NzI3MDk5NTE1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3ce9747bfd91a851af6c60a2a3e2bcb89525a5b61a2d32a01f32fa33915405bf
hovercard-subject-tagissue:447118537
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/8093/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4433194cdbccb71f94b9e2f44577032c59121a7c83804391f666ab51e93f508b/googleapis/google-cloud-python/issues/8093
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4433194cdbccb71f94b9e2f44577032c59121a7c83804391f666ab51e93f508b/googleapis/google-cloud-python/issues/8093
og:image:altI am encountering the following problem, when uploading a Pandas DataFrame to a partitioned table: Environment details API: BigQuery OS: macOS High Sierra 10.13.6 Python: 3.5.7 Packages: google-api...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametimocb
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/8093#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F8093
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%2F8093
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/8093
Reloadhttps://github.com/googleapis/google-cloud-python/issues/8093
Reloadhttps://github.com/googleapis/google-cloud-python/issues/8093
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/8093
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/8093
#8230https://github.com/googleapis/google-cloud-python/pull/8230
BigQuery: Field has changed mode from REQUIRED to NULLABLEhttps://github.com/googleapis/google-cloud-python/issues/8093#top
#8230https://github.com/googleapis/google-cloud-python/pull/8230
https://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
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/timocb
timocbhttps://github.com/timocb
on May 22, 2019https://github.com/googleapis/google-cloud-python/issues/8093#issue-447118537
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: questionRequest for information or clarification. Not an issue.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20question%22
on May 22, 2019https://github.com/googleapis/google-cloud-python/issues/8093#event-2359875208
https://github.com/tseaver
tseaverhttps://github.com/tseaver
on May 22, 2019https://github.com/googleapis/google-cloud-python/issues/8093#issuecomment-494874327
@tswasthttps://github.com/tswast
https://github.com/tseaver
tseaverhttps://github.com/tseaver
on May 22, 2019https://github.com/googleapis/google-cloud-python/issues/8093#issuecomment-494952485
#7370https://github.com/googleapis/google-cloud-python/issues/7370
https://github.com/tswast
tswasthttps://github.com/tswast
on May 22, 2019https://github.com/googleapis/google-cloud-python/issues/8093#issuecomment-494980341
@timocbhttps://github.com/timocb
https://github.com/timocb
timocbhttps://github.com/timocb
on May 23, 2019https://github.com/googleapis/google-cloud-python/issues/8093#issuecomment-495103682
@tswasthttps://github.com/tswast
@tseaverhttps://github.com/tseaver
https://github.com/tswast
tswasthttps://github.com/tswast
on May 23, 2019https://github.com/googleapis/google-cloud-python/issues/8093#issuecomment-495268955
@timocbhttps://github.com/timocb
https://issuetracker.google.com/133415569https://issuetracker.google.com/133415569
https://github.com/tswast
tswasthttps://github.com/tswast
on May 23, 2019https://github.com/googleapis/google-cloud-python/issues/8093#issuecomment-495319995
https://issues.apache.org/jira/browse/ARROW-5169https://issues.apache.org/jira/browse/ARROW-5169
https://github.com/timocb
timocbhttps://github.com/timocb
on Jun 5, 2019https://github.com/googleapis/google-cloud-python/issues/8093#issuecomment-498999115
@tswasthttps://github.com/tswast
#8105https://github.com/googleapis/google-cloud-python/pull/8105
https://github.com/tswast
tswasthttps://github.com/tswast
on Jun 5, 2019https://github.com/googleapis/google-cloud-python/issues/8093#issuecomment-499229257
@timocbhttps://github.com/timocb
#8105https://github.com/googleapis/google-cloud-python/pull/8105
tswasthttps://github.com/tswast
on Jun 5, 2019https://github.com/googleapis/google-cloud-python/issues/8093#event-2392339937
tswasthttps://github.com/tswast
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
type: questionRequest for information or clarification. Not an issue.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20question%22
on Jun 5, 2019https://github.com/googleapis/google-cloud-python/issues/8093#event-2392340333
plamuthttps://github.com/plamut
completedhttps://github.com/googleapis/google-cloud-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#8230https://github.com/googleapis/google-cloud-python/pull/8230
on Jun 7, 2019https://github.com/googleapis/google-cloud-python/issues/8093#event-2398165996
Sign up for freehttps://github.com/signup?return_to=https://github.com/googleapis/google-cloud-python/issues/8093
Sign in to commenthttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/8093
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
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.