mpurins-coralogix opened a new issue, #16965:
URL: https://github.com/apache/datafusion/issues/16965

   ### Describe the bug
   
   When datafusion.execution.target_partitions is set to 1 then following query 
gives incorrect results -- `select id from (select 'id' as id union all select 
'id' as id order by id) group by grouping sets ((id), ());`
   
   ### To Reproduce
   
   Run following in datafusion-cli
   ```
   DataFusion CLI v49.0.0
   > set datafusion.execution.target_partitions = 1;
   0 row(s) fetched.
   Elapsed 0.013 seconds.
   
   > select id from (select 'id' as id union all select 'id' as id order by id) 
group by grouping sets ((id), ());
   +------+
   | id   |
   +------+
   | id   |
   | NULL |
   | id   |
   +------+
   3 row(s) fetched.
   Elapsed 0.016 seconds.
   ```
   
   ### Expected behavior
   
   Query should give following result
   ```
   +------+
   | id   |
   +------+
   | id   |
   | NULL |
   +------+
   ```
   
   ### Additional context
   
   _No response_


-- 
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-unsubscr...@datafusion.apache.org.apache.org

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


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

Reply via email to