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

[FEAT]: write lance #2421

Merged
merged 10 commits into from
Jun 28, 2024
Merged

Conversation

universalmind303
Copy link
Collaborator

No description provided.

@github-actions github-actions bot added the enhancement New feature or request label Jun 20, 2024
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

Attention: Patch coverage is 77.27273% with 5 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@a2bb7f8). Learn more about missing BASE report.
Report is 9 commits behind head on main.

Current head 158291c differs from pull request most recent head e8d0c62

Please upload reports for the commit e8d0c62 to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2421   +/-   ##
=======================================
  Coverage        ?   63.14%           
=======================================
  Files           ?      939           
  Lines           ?   105349           
  Branches        ?        0           
=======================================
  Hits            ?    66519           
  Misses          ?    38830           
  Partials        ?        0           
Files Coverage Δ
daft/dataframe/dataframe.py 89.12% <77.27%> (ø)

@universalmind303
Copy link
Collaborator Author

@samster25
Copy link
Member

samster25 commented Jun 27, 2024

@samster25 any idea why this is failing only for 3.8 ray

https://github.com/Eventual-Inc/Daft/actions/runs/9685879782/job/26727018529?pr=2421

It looks like it's failing for all 3.8 CI jobs that use pyarrow 8+ (where the lance tests actually get triggered)

write_fragments() got an unexpected keyword argument 'storage_options'

@universalmind303
Copy link
Collaborator Author

@samster25 any idea why this is failing only for 3.8 ray
https://github.com/Eventual-Inc/Daft/actions/runs/9685879782/job/26727018529?pr=2421

It looks like it's failing for all 3.8 CI jobs that use pyarrow 8+ (where the lance tests actually get triggered)

write_fragments() got an unexpected keyword argument 'storage_options'

is ray using an older version of lance or something? because storage_options is definitely a valid argument

https://lancedb.github.io/lance/api/python/lance.html#lance.fragment.write_fragments

https://github.com/lancedb/lance/blob/acf750a9a702c2bb322fed8ef7dc4fcaffdb9c71/python/python/lance/fragment.py#L511

@samster25
Copy link
Member

samster25 commented Jun 27, 2024

@universalmind303 I dug into the bug a bit and was able to repro on a linux machine under python 3.8. It looks like the version (pylance-0.10.15) installed under 3.8 just doesn't have storage options as an argument. Maybe they dropped support for 3.8?

image

To fix this, we should require a minimum version of lance where they introduced storage options.

cc: @wjones127

@universalmind303
Copy link
Collaborator Author

Copy link
Member

@samster25 samster25 left a comment

Choose a reason for hiding this comment

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

Looks great! Let's also make sure this is visible in the api docs as well as the integrations like this: https://www.getdaft.io/projects/docs/en/latest/user_guide/integrations/delta_lake.html

tests/io/lancedb/test_lancedb_writes.py Outdated Show resolved Hide resolved
daft/dataframe/dataframe.py Outdated Show resolved Hide resolved
daft/dataframe/dataframe.py Show resolved Hide resolved
daft/table/table_io.py Outdated Show resolved Hide resolved
Comment on lines +84 to +87
[tool.pyright]
typeCheckingMode = "off"
venv = ".venv"
venvPath = "."
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note: zed uses pyright by default without the ability to disable it, so i needed to add this to not see 100+ irrelevant type errors.

@universalmind303 universalmind303 enabled auto-merge (squash) June 28, 2024 13:44
@universalmind303 universalmind303 merged commit 230508f into Eventual-Inc:main Jun 28, 2024
41 checks passed
@colin-ho colin-ho mentioned this pull request Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants