Add LazyFrame.branch()
#21645
Labels
enhancement
New feature or an improvement of an existing feature
LazyFrame.branch()
#21645
Description
I often have the case where I have multiple frames that all come from a common ancestor query path, but branch off near the end to materialize the final frame. Something like this:
Without the
lf.collect().lazy()
, all of the work in the long complex path would be computed twice, as we replicate the entire query plan. Anlf.branch()
would effectively solve this issue without having to perform the mid-way materialization:The text was updated successfully, but these errors were encountered: