-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix up some mypy errors #76
Fix up some mypy errors #76
Conversation
Thanks for handling this @jacobtomlinson . +1 to merge from my perspective. However, I'm also curious about the failing tests. If you have even more appetite to fix things and want to fix that that would be welcome. Leaving when to merge up to you. |
Yeah I'm wondering if upgrading to |
Ok it looks like
It looks like the failing test is already smoothing out some dtype issues and is assuming However I still seem to be running into a problem with the test failing complaining the dtypes are not correct and I'm a little stumped. |
cc @phofl who might have thoughts on dtypes returned here (I suspect that deltalake is using arrow) |
cc @jrbourbeau who also opened #74 about this issue. |
The string thing seems fine, the utc change is a little bit odd |
@jrbourbeau @phofl do either of you have thoughts on how I can move this PR forward? I'm a little stuck as to why the assertion is failing. |
Do you have the dtypes of both objects? |
Yeah but when I print them out that appear identical. So something deeper must be happening. |
Can you post them here? |
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #76 +/- ##
==========================================
- Coverage 71.62% 70.90% -0.73%
==========================================
Files 6 6
Lines 356 354 -2
==========================================
- Hits 255 251 -4
- Misses 101 103 +2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for nudging this over the line @jrbourbeau!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jacobtomlinson. Let's leave this up for another day in case others have feedback, otherwise I think it's good to go
dask_deltatable/core.py
Outdated
fs=fs, | ||
columns=columns, | ||
schema=schema, | ||
**kwargs, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from_map
in dask-expr
doesn't support token=
, but in this case I think we can have from_map
handle tokenization internally (someone should feel free to correct me if that's not the case)
I came to give my review, noticed some conflicts and thought I'd make a PR to yours (jacobtomlinson#1) in order to help resolve the conflicts caused by #78, then sorta noticed that did most of what was done here. My apologies for stepping on your toes here. |
Milesgranger/linting fixes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @jacobtomlinson!
Thanks for the reviews and iterations on this everyone. I'm going to merge this in now. |
There were some mypy issues in #71 that were unrelated. Following up here to fix things up. Closes #74
There seems to be two issues when running
pre-commit run --all-files
:MAX_SUPPORTED_PYARROW_WRITER_VERSION
was renamed indeltalake>=0.16
. Updated the name and bumped the minimum version.**kwargs
totokenize
makesmypy
unhappy. Explicitly ignoring that.