<@U088GGSTRR6> Thanks for taking a look at <this i...
# daft-dev
c
@Robert Howell Thanks for taking a look at this issue. I'm curious why broadcasting a dataframe during a cross join is not supported? If I'm cross joining a small df to a large df, I would think broadcasting would be the ideal strategy. Perhaps Daft is automating such an optimization under the hood already?
r
I agree that makes sense. Tagging @Kevin Wang who can help explain why the strategy is not supported. Thank you.
🙏 1
k
Since a cross join does not have any join keys, we can skip a lot of the logic that is needed for other join strategies. When you're joining a small and large dataframe, generally Daft will do a pretty good job already, but if you observe that the ray object store is becoming a bottleneck due to the number of partitions in the small dataframe, you can try df.into_partitions(1) before the join, which will effectively do a broadcast cross join.
If you'd like to share any additional details about the performance of the query, I'd be happy to advise on what can be done to improve it!
c
Excellent! Thanks for the explanation @Kevin Wang. Will
into_partitions
work in flotilla atm? I remember reading in this recent flotilla partitioning improvement PR that intoPartitions is still unimplemented.
k
into_partitions
is not supported in Flotilla just yet, but we are planning on shipping it this week. I think what might be more of a blocker though is that cross joins are not yet supported in Flotilla either.
c
ahh. good to know!
Ah, just found the Flotilla Roadmap. Also found the design doc very informative. Appreciate all the good documentation y'all have ❤️. I'll continue keep an eye on future releases to keep a pulse on the progress of Flotilla.
I see
Sort merge joins
are in the non-goal section of the design doc, but in the todo list of the roadmap. Which one is correct?
k
Tagging @Colin Ho here
c
😅 Oopsies, thats my bad. It is part of the goals of flotilla, i'll need to update that, thanks for raising!
🙏 1