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

Compatibility with latest dask, pyarrow and deltalake #68

Merged
merged 6 commits into from
Feb 13, 2024
Merged

Conversation

mrocklin
Copy link
Contributor

Fixes #65

cc @fjetter there is probably a better way to do this in case you all want to improve things here and make them more future-proof.

@fjetter
Copy link
Contributor

fjetter commented Feb 13, 2024

I'll have a look and see what bothers CI

import dask.dataframe as dd
import pyarrow as pa
import pyarrow.parquet as pq
from dask.base import tokenize
from dask.dataframe.io.parquet.arrow import ArrowDatasetEngine
Copy link
Contributor

Choose a reason for hiding this comment

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

This import is a bit ugly but this class exposes our type mappers and this way we can align behavior

@fjetter fjetter changed the title Move internal private import Compatibility with latest dask and deltalake Feb 13, 2024
@fjetter fjetter changed the title Compatibility with latest dask and deltalake Compatibility with latest dask, pyarrow and deltalake Feb 13, 2024
Comment on lines +223 to 224
graph = HighLevelGraph.from_collections(final_name, dsk, dependencies=(written,)) # type: ignore
result = Scalar(graph, final_name, "")
Copy link
Contributor

Choose a reason for hiding this comment

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

I'll migrate to dask-expr in a follow up PR once this is green

@codecov-commenter
Copy link

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (24e0c58) 73.37% compared to head (f0d4956) 74.06%.
Report is 1 commits behind head on main.

Files Patch % Lines
dask_deltatable/core.py 93.33% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #68      +/-   ##
==========================================
+ Coverage   73.37%   74.06%   +0.68%     
==========================================
  Files           6        6              
  Lines         308      320      +12     
==========================================
+ Hits          226      237      +11     
- Misses         82       83       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mrocklin
Copy link
Contributor Author

CI is green. @fjetter can I leave this PR with you?

@fjetter fjetter merged commit cbe085a into main Feb 13, 2024
20 checks passed
@fjetter fjetter deleted the internal-import branch February 13, 2024 13:49
@mrocklin
Copy link
Contributor Author

mrocklin commented Feb 13, 2024 via email

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.

Failed import when running deltalake==0.14.0
3 participants