61yao commented on PR #9832:
URL: https://github.com/apache/pinot/pull/9832#issuecomment-1324147001

   > @Jackie-Jiang - yes, the V2 engine requires that the server returns 
columns in the order that would be the result of the logical plan (and also 
that it doesn't have extra or missing columns, which could be the case of the 
order by column wasn't selected or a column was selected multiple times).
   > 
   > Calcite makes assumptions that each stage will return results that are 
"correct" for that logical stage. The alternative would be, instead of building 
this into v1, wrapping the v2 leaf stage with an operator that rearranges 
columns but it felt like this flag would be the exact thing we should leverage.
   
   Is it possible we re-arrange columns in intermediate stage instead if we 
pass data schema to intermediate stage? This way we can leave the leaf stage 
untouched. 


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to