Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Linchin
Copy link
Contributor

@Linchin Linchin commented Jan 16, 2025

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.

@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 requested review from a team as code owners January 16, 2025 20:27
@Linchin Linchin requested a review from 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
Copy link
Contributor Author

Linchin commented Jan 16, 2025

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

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

@Linchin Linchin requested review from chalmerlowe and tswast and removed request for GaoleMeng January 16, 2025 22:04
@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
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants