Skip to content

chore(bigframes): fix mypy errors and JSON serialization order#16755

Merged
chalmerlowe merged 1 commit intomainfrom
fix-bigframes-mypy-and-json
Apr 21, 2026
Merged

chore(bigframes): fix mypy errors and JSON serialization order#16755
chalmerlowe merged 1 commit intomainfrom
fix-bigframes-mypy-and-json

Conversation

@chalmerlowe
Copy link
Copy Markdown
Contributor

This PR fixes mypy errors regarding pyarrow.compute and a JSON serialization order mismatch in bigframes tests.

@chalmerlowe chalmerlowe requested review from a team as code owners April 21, 2026 18:25
@chalmerlowe chalmerlowe requested review from shuoweil and removed request for a team April 21, 2026 18:25
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds mypy type ignores to pyarrow.compute.is_null calls and updates JSON test expectations to reflect a change in key ordering. Feedback suggests that adjacent pyarrow.compute.fill_null calls likely require similar type ignores to fully resolve mypy errors. Furthermore, the change in JSON key order in the tests should be reviewed to ensure output stability, ideally by using programmatic sorting for dictionary-like outputs.

Comment thread packages/bigframes/bigframes/session/_io/pandas.py
Comment thread packages/bigframes/bigframes/session/_io/pandas.py
Comment thread packages/bigframes/tests/system/small/bigquery/test_json.py
Comment thread packages/bigframes/tests/system/small/bigquery/test_json.py
@chalmerlowe chalmerlowe merged commit cde1c0f into main Apr 21, 2026
30 checks passed
@chalmerlowe chalmerlowe deleted the fix-bigframes-mypy-and-json branch April 21, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants