-
Notifications
You must be signed in to change notification settings - Fork 0
TST: Add test for writing UUIDs to parquet with pyarrow #61602 #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
xirafa
wants to merge
28
commits into
main
Choose a base branch
from
GiTaDi-CrEaTe/tests/io-parquet-uuid-61602
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
3bbeea2
TST: Add test for writing UUIDs to parquet with pyarrow #61602
GiTaDi-CrEaTe 88d4e28
TST: Fix read_parquet namespace usage
GiTaDi-CrEaTe 9d98157
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5f4d739
TST: Address reviewer feedback for UUID pyarrow test
GiTaDi-CrEaTe b2f9c8b
Merge branch 'main' into tests/io-parquet-uuid-61602
GiTaDi-CrEaTe 72dc35a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c53e34c
TST: Implement reviewer feedback and fix formatting
GiTaDi-CrEaTe 6b7b57f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 1f36ae7
Merge branch 'main' into tests/io-parquet-uuid-61602
GiTaDi-CrEaTe e699965
TST: Handle raw bytes fallback for UUIDs on PyArrow nightly/py314
GiTaDi-CrEaTe f4f3e4e
Merge branch 'main' into tests/io-parquet-uuid-61602
GiTaDi-CrEaTe 91f481c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6332052
TST: Fix line length in comment to pass ruff
GiTaDi-CrEaTe 8925886
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0139402
TST: Use temp_file fixture instead of tmp_path
GiTaDi-CrEaTe 9053a75
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] bdd3ae3
TST: Replace UUID byte fallback with pytest.xfail for upstream bug
GiTaDi-CrEaTe b244666
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 764647b
TST: Refactor dynamic xfail to use request.node.add_marker
GiTaDi-CrEaTe 9fe4745
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 07ccaef
TST: Shorten xfail reason string to pass ruff line length
GiTaDi-CrEaTe a09deb0
TST: Unconditionally xfail UUID pyarrow test per reviewer request
GiTaDi-CrEaTe 1ad08a5
TST: Fix ruff line length and read_parquet namespace usage
GiTaDi-CrEaTe 214203b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c3ae88c
TST: Unconditionally xfail UUID pyarrow test and link upstream Arrow bug
GiTaDi-CrEaTe a43313d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] aa6d566
TST: Update xfail reason to reflect stable PyArrow bug
GiTaDi-CrEaTe e0d6174
TST: Remove comments per reviewer request
GiTaDi-CrEaTe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: autodag-dev/pandas
Length of output: 8295
🌐 Web query:
Apache Arrow FIXED_LEN_BYTE_ARRAY UUID Arrow issue 50312💡 Result:
Apache Arrow issue 50312 refers to a bug involving the improper handling of UUID extension types during conversion between PyArrow and pandas [1]. Specifically, when a PyArrow Table containing a UUID column is converted to a pandas DataFrame, the data is returned as raw bytes instead of Python uuid.UUID objects [1][2]. Key details regarding this issue include: Root Cause: The issue stems from the UuidType in PyArrow not implementing to_pandas_dtype, which causes Table.to_pandas to fall back to the underlying storage type, fixed_size_binary(16), resulting in bytes [2]. Status: As of July 29, 2026, the issue is open and actively being addressed [1]. A pull request (GH-50325) was initiated to fix this by adding the missing method [2]. However, project maintainers have suggested a more robust, performance-optimized implementation in C++ rather than the initial Python-level fix [3]. Broader Context: This is part of ongoing work to improve UUID and extension type support in PyArrow [4][5]. Other recent related issues have included inconsistencies in Parquet schema reading (where extension types were dropped) [4] and difficulties in constructing UuidArrays from scalars [5]. Users encountering this behavior should follow the progress on GitHub issue 50312 for updates and the final resolution [1].
Citations:
UuidArrayfrom list ofUuidScalars apache/arrow#48470Add the upstream Arrow issue to the xfail reason.
GH 61602tracks the pandas test, but this PyArrowFIXED_LEN_BYTE_ARRAY→ UUID regression is tracked separately as Apache Arrow issue#50312. Include both references so maintainers can determine when this unconditional xfail can be removed.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents
Source: MCP tools