milevin commented on issue #5695:
URL: 
https://github.com/apache/arrow-datafusion/issues/5695#issuecomment-1482086910

   @comphead Here is another instance
   
   ```
   ❯ create table temp as WITH w1 AS (select 1 as x , max(10) as y), w2 AS 
(select 5 as n_regionkey)
   select count(*) count, n_regionkey from w2 group by n_regionkey
   union all
   select x, y from w1 order by n_regionkey, count desc;
   Error during planning: Mismatch between schema and batches
   ```
   
   Note: no windowing here, and all the columns are aliased


-- 
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: [email protected]

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

Reply via email to