Skip to content
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

'FileNotFoundError' with '.compute()' operation on Dask dataframe read using 'read_deltalake' #86

Open
sartsha opened this issue Oct 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sartsha
Copy link

sartsha commented Oct 25, 2024

Hello. I am facing this issue on a local deltalake table on a single machine setup.

Environment:

  • Windows 10
  • Python 3.10.9
  • dask-deltatable 0.3.3
  • deltalake 0.20.2
  • dask 2024.10.0
  • pyarrow 17.0.0

Minimal code to reproduce:

from deltalake import write_deltalake
import pandas as pd
import numpy as np

some_strings = ['apple', 'banana', 'grape']
n = 10
df = pd.DataFrame({
    "Column1": np.random.choice(some_strings, n),
    "Column2": np.random.randint(1,100,n)
})
table_path = 'Relative path/random_table'
write_deltalake(table_path, df, mode='overwrite')



import dask_deltatable as ddt

ddf = ddt.read_deltalake(table_path, version=0)
print(list(ddf.columns)) # Output: ['Column1', 'Column2']

print(ddf.compute().size) # Error!

Error description: "FileNotFoundError: C:/...<full_path>.../Relative path/random_table/part-00001-...c000.snappy.parquet"
This was raised from _ensure_single_source() function in pyarrow/dataset.py

Whenever I try to do the .compute() operation to convert it to a pandas dataframe, the error above is raised, even though the files and folder are present.

I have tried setting the 'dataframe.query-planning' option to False, but no luck

@jacobtomlinson jacobtomlinson added the bug Something isn't working label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants