-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
DataFrame.join(LazyFrame)
is allowed ?
#6264
Comments
That surprises me. That should not be allowed. |
@ritchie46 It is not so surprising as join in eager converts both dataframes to lazy anyway. return (
self.lazy()
.join(
other=other.lazy(),
left_on=left_on,
right_on=right_on,
on=on,
how=how,
suffix=suffix,
)
.collect(no_optimization=True)
) |
My feeling is we should be explicit that the frame types are expected to match (as it might not be intentional), and raise a helpful error in all cases where they don't, telling the caller what's going on. Can make a simple PR for this, as it does seem inconsistent. (If we were to allow it, and you actually intended to do a series of lazy computations, you may not realise you just promoted your call-chain to eager mode until you |
Research
I have searched the above polars tags on Stack Overflow for similar questions.
I have asked my usage related question on Stack Overflow.
Link to question on Stack Overflow
No response
Question about Polars
I think it is a new behavior but I am not sure.
I though you can't mix
DataFrame
andLazyFrame
injoin
Actually, you can if the
LazyFrame
is on the right sideIs it on purpose? Can we rely on this "feature" ?
The text was updated successfully, but these errors were encountered: