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

   ### Describe the bug
   
   In certain rare cases, Min/Max queries on string columns like this
   
   ```sql
   SELECT b, max(a) FROM fuzz_table GROUP BY b
   ```
   
   Will error like
   
   InvalidArgumentError("number of columns(1) must match number of fields(2) in 
schema" 
   
   https://github.com/apache/datafusion/pull/12667
   
   
   
   ### To Reproduce
   
   Uncomment tests from the aggregation fuzzer
   
   ```
           //   ArrowError(InvalidArgumentError("number of columns(1) must 
match number of fields(2) in schema"))
           // .add_sql("SELECT b, max(a) FROM fuzz_table GROUP BY b")
           // .add_sql("SELECT b, min(a) FROM fuzz_table GROUP BY b")
   ```
   
   ### Expected behavior
   
   Tests should pass
   
   ### 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