Re: Running UNION ALL queries in parallel

2019-04-20 Thread Julian Hyde
Yes it does. Only ORDER BY causes order. Julian > On Apr 20, 2019, at 12:17, Gian Merlino wrote: > > Hey Julian, > > I think it'd be fine to issue the queries in parallel with a few > adjustments. We'd want to avoid buffering, meaning we'd want to allow query > results to be mixed together

Re: Running UNION ALL queries in parallel

2019-04-20 Thread Gian Merlino
Hey Julian, I think it'd be fine to issue the queries in parallel with a few adjustments. We'd want to avoid buffering, meaning we'd want to allow query results to be mixed together (return rows in the order they become available, rather than in query order sequence). I believe the SQL standard

Running UNION ALL queries in parallel

2019-04-19 Thread Julian Jaffe
Hey all, Druid currently executes UNION ALL queries sequentially ( https://github.com/apache/incubator-druid/blob/master/sql/src/main/java/org/apache/druid/sql/calcite/rel/DruidUnionRel.java#L98). There's a comment in that method that restates this, but does not explain why. Is there a reason why