2010YOUY01 opened a new issue, #11846:
URL: https://github.com/apache/datafusion/issues/11846

   ### Describe the bug
   
   The last query in reproducer should return `true`
   
   Run in datafusion-cli:
   ```
   DataFusion CLI v40.0.0
   > create table t1(v1 int, v2 boolean);
   0 row(s) fetched.
   Elapsed 0.073 seconds.
   
   > insert into t1 values (1, true), (1, true);
   +-------+
   | count |
   +-------+
   | 2     |
   +-------+
   1 row(s) fetched.
   Elapsed 0.051 seconds.
   
   > select bool_and(v2) from t1;
   +-----------------+
   | bool_and(t1.v2) |
   +-----------------+
   | true            |
   +-----------------+
   1 row(s) fetched.
   Elapsed 0.016 seconds.
   
   > select v1, bool_and(v2) from t1 group by v1;
   +----+-----------------+
   | v1 | bool_and(t1.v2) |
   +----+-----------------+
   | 1  | false           |
   +----+-----------------+
   1 row(s) fetched.
   Elapsed 0.011 seconds.
   dd
   ```
   
   ### 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