Skip to content

Fix pyarrow FileInfo import #9078

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
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jrbourbeau
Copy link
Member

Custom serialization for pyarrow.fs.FileInfo was recently added to help with Parquet in Dask DataFrame (xref #9025) but this import isn't quite right

In [1]: import pyarrow

In [2]: pyarrow.fs.FileInfo
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[2], line 1
----> 1 pyarrow.fs.FileInfo

AttributeError: module 'pyarrow' has no attribute 'fs'

I think this went unnoticed because in the Dask DataFrame case we trigger this correct import first

https://github.com/dask/dask/blob/c8ef947bd38e2b739ad3eccdbcce42e08d8c3f4a/dask/dataframe/dask_expr/io/parquet.py#L21

first which allows the import here to work.

However in the non-Dask DataFrame parquet case, that correct import doesn't happen and folks hit the AttributeError

@jrbourbeau jrbourbeau requested a review from fjetter as a code owner May 15, 2025 17:34
Copy link
Contributor

github-actions bot commented May 15, 2025

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

    26 files   -     1      26 suites   - 1   10h 49m 31s ⏱️ - 25m 34s
 4 114 tests ±    0   3 999 ✅  -     1    111 💤 ± 0  3 ❌ +1  1 🔥 ±0 
48 901 runs   - 2 669  46 673 ✅  - 2 610  2 224 💤  - 60  3 ❌ +1  1 🔥 ±0 

For more details on these failures and errors, see this check.

Results for commit d9d342d. ± Comparison against base commit 6d3f6eb.

♻️ This comment has been updated with latest results.

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.

1 participant