You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "comphead (via GitHub)" <gi...@apache.org> on 2023/05/18 20:21:34 UTC

[GitHub] [arrow-datafusion] comphead commented on issue #6385: UNION ALL aliasing is wrong on more complicated queries

comphead commented on issue #6385:
URL: https://github.com/apache/arrow-datafusion/issues/6385#issuecomment-1553599896

   A specific case of the bug is 
   ```
   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;
   +---+----+
   | x | y  |
   +---+----+
   | 1 | 10 |
   | 1 | 5  |
   +---+----+
   ```


-- 
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: github-unsubscribe@arrow.apache.org

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