Hi Everyone, I'm trying to understand the differen...
# troubleshooting
a
Hi Everyone, I'm trying to understand the differences in JOIN strategies between StarRocks and Pinot. If anyone has insights into this, I would really appreciate your input. For reference: • Pinot Multi-Stage Engine: Link • StarRocks : Blog Looking forward to your thoughts! Thanks!
g
I don't know much about how StarRocks implements joins. Celerdata blog is nice to understand the difference with CH, but doesn't say much about Druid, Trino or Pinot
@Gonzalo Ortiz this might help
g
it does, thanks
I can say we support almost all the modes indicated in https://celerdata.com/blog/ditch-denormalization-in-real-time-analytics-with-joins out of the box. The only mode that is a bit tricky is Local JOINs - Replicated JOIN. Right now in that case we also randomly partition the side that is not replicated. It has some advantages (it scales further) and some disadvantages (more IO). Therefore we are going to add some hints let users to choose from one mode and the other
Reading that doc it doesn't look like they support semi-join index pushdown, which is an important optimization in Pinot: https://docs.pinot.apache.org/users/user-guide-query/multi-stage-query/optimizing-joins#optimizing-semi-join-to-use-indexes
We are planning to extend this optimization to other joins as well, although we don't know when that is going to be ready. This feature is supported in other databases like trino and they call it dynamic filtering (see https://trino.io/episodes/11.html). We are probably going to use that name as well
we discussed about current and future Pinot optimizations in this CMU seminar

https://youtu.be/yRMhAL_6f4o?si=4CdYL50Tk-PPL2_v▾