Eventual-Inc / Daft

Distributed DataFrame for Python designed for the cloud, powered by Rust
https://getdaft.io
Apache License 2.0
1.76k stars 105 forks source link

error when using home tilde `~` in file path #2205

Closed universalmind303 closed 3 days ago

universalmind303 commented 2 weeks ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

import daft

df = daft.read_json('~/Downloads/stackexchange_sample.jsonl')
FileNotFoundError: File: ~/Downloads/stackexchange_sample.jsonl not found
No such file or directory (os error 2)

Expected behavior Expect file to load the same as using the fully qualified home path

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

samster25 commented 2 weeks ago

Aw good catch! This would be a good follow up after the local json reader!