gianm edited a comment on issue #10221:
URL: https://github.com/apache/druid/issues/10221#issuecomment-665991071


   I think this is a consequence of the fact that today, "UNION ALL" must 
appear at the very outer layer of the query: 
https://druid.apache.org/docs/latest/querying/sql.html#union-all
   
   Technically even the second query you posted shouldn't work. But it probably 
works because the outer query is eliminated at some point early in the planning 
process (since it doesn't do anything).
   
   I think when we add support for "UNION ALL" appearing at more points within 
the query structure, then this issue will be solved. The weird error message 
will also go away at that point.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to