-
Notifications
You must be signed in to change notification settings - Fork 245
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: fix ray lance sink error #3230
Conversation
40166e9
to
96ac308
Compare
1c815c3
to
24692b6
Compare
python/python/lance/ray/sink.py
Outdated
if isinstance(first_element, (pa.Table, pd.DataFrame)): | ||
write_results = [ | ||
result["write_result"].iloc[0]["result"] for result in write_results | ||
] |
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.
Ah, does this work on older versions of Ray as well? It's probably not a deal breaker if it doesn't (we can require a certain version of Ray) but I'm curious to know how we should document this.
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.
Yes, the changes here are compatible with older versions of Ray. So there is no need for a separate documentation. However, before the code I submitted to the Ray community is merged, only versions prior to Ray 2.38.0 can be used.
Hi @Jay-ju @westonpace ray committer has created a PR ray-project/ray#49251 . maybe fix should be based on that PR. |
I've tried this locally. When I run the tests in
I did some inspecting. A I agree with @chenkovsky that we will need to wait for ray-project/ray#49251 to be released. |
(I tested with both ray==2.38 and ray==2.40) |
7943f7e
to
a152077
Compare
@westonpace I have made changes based on the latest code of ray. Please review it again. |
af033ae
to
0f22455
Compare
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 continuing to work on this! I did confirm that all tests pass with this change using the nightly release from Ray and the tests continue to pass with older version (2.37) so i think this is good.
I have a few minor warning message / comment suggestions and then we can merge this. Please re-request review when you've been able to address them.
8cd692e
to
81c276b
Compare
81c276b
to
645cb5a
Compare
@westonpace please help me review this PR again? tks |
#3229
ray-project/ray#49214