GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: add default value in SchemaField.from_api_repr() by Linchin · Pull Request #2115 · googleapis/python-bigquery

This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Conversation

@Linchin

@Linchin Linchin commented Jan 16, 2025

Copy link
Copy Markdown
Contributor

Fixing googleapis/python-bigquery-pandas#854, do not merge until yanking 3.28.0 is complete.

In https://github.com/googleapis/python-bigquery/pull/2097/files#diff-dc8e320384c6a5d2b65e1e05c4853b853575618ff4706a6f2c74b9363d49ea14 in method SchemaField.from_api_repr(), we no longer set a default value for mode if it's not provided in the API representation, causing tests to fail in pandas-gbq. This PR adds it back.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Linchin
fix: add default value in SchemaField.from_api_repr()
046c4cb
@Linchin Linchin added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jan 16, 2025
@Linchin Linchin assigned chalmerlowe Jan 16, 2025
@Linchin
Linchin requested review from a team and GaoleMeng January 16, 2025 20:27
@product-auto-label product-auto-label Bot added size: xs Pull request size is extra small. api: bigquery Issues related to the googleapis/python-bigquery API. labels Jan 16, 2025
@Linchin

Linchin commented Jan 16, 2025

Copy link
Copy Markdown
Contributor Author

After our discussion, I don't think we should add description, because before the change that was to be reverted, field description wouldn't be created if we just provide _DEFAULT_VALUE. See

python-bigquery/google/cloud/bigquery/schema.py

Lines 191 to 192 in 9c50418

if description is not _DEFAULT_VALUE:
self._properties["description"] = description

tswast reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Linchin Linchin assigned tswast Jan 16, 2025
@Linchin
Linchin requested review from chalmerlowe and tswast and removed request for GaoleMeng January 16, 2025 22:04
tswast
tswast approved these changes Jan 17, 2025
View reviewed changes
@Linchin Linchin removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jan 17, 2025
@Linchin
Linchin merged commit 7de6822 into googleapis:main Jan 17, 2025
@release-please release-please Bot mentioned this pull request Jan 17, 2025
chore(main): release 3.29.0 #2117
Merged
chalmerlowe pushed a commit that referenced this pull request Jan 22, 2025
@Linchin @chalmerlowe
fix: add default value in SchemaField.from_api_repr() (#2115)
bca7c56
This was referenced Jan 28, 2025
January 27, 2025 kitta65/bq-extension-vscode#647
Closed
January 27, 2025 kitta65/prettier-plugin-bq#589
Closed
January 27, 2025 kitta65/bq2cst#471
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@chalmerlowe chalmerlowe Awaiting requested review from chalmerlowe
1 more reviewer
@tswast tswast tswast approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@tswast tswast

@chalmerlowe chalmerlowe

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. size: xs Pull request size is extra small.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Linchin @tswast @chalmerlowe
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.