comphead opened a new issue, #22826:
URL: https://github.com/apache/datafusion/issues/22826

   ### Describe the bug
   
   Originally reported by https://github.com/apache/datafusion-comet/issues/4481
   
   PSQL
   
   ```
   select +0.0 a union select 0.0 a union select -0.0 a;
   
     a  
   -----
    0.0
   (1 row)
   
   select count(distinct a) from (select +0.0 a union select 0.0 a union select 
-0.0 a);
   
    count 
   -------
        1
   (1 row)
   
   select distinct a from (select +0.0 a union select 0.0 a union select -0.0 
a);
   
     a  
   -----
    0.0
   (1 row)
   ```
   
   ```
   DataFusion CLI v53.1.0
   > select +0.0 a union select 0.0 a union select -0.0 a;
   +------+
   | a    |
   +------+
   | 0.0  |
   | -0.0 |
   +------+
   2 row(s) fetched. 
   Elapsed 0.019 seconds.
   
   > select count(distinct a) from (select +0.0 a union select 0.0 a union 
select -0.0 a);
   
   +-------------------+
   | count(DISTINCT a) |
   +-------------------+
   | 2                 |
   +-------------------+
   1 row(s) fetched. 
   Elapsed 0.013 seconds.
   
   > select distinct a from (select +0.0 a union select 0.0 a union select -0.0 
a);
   
   +------+
   | a    |
   +------+
   | -0.0 |
   | 0.0  |
   +------+
   2 row(s) fetched. 
   Elapsed 0.011 seconds.
   
   
   ```
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### 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: [email protected]

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