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

   ### Describe the bug
   
   Execution error: Can't group type: Utf8View
   
   ### To Reproduce
   
   ```
   DataFusion CLI v51.0.0
   > create table t(a text, b text) as values ('123', '4'), ('1', '3');
   0 row(s) fetched.
   Elapsed 0.019 seconds.
   
   > select a, max(b) as y_axis from t group by a order by y_axis desc;
   +-----+--------+
   | a   | y_axis |
   +-----+--------+
   | 123 | 4      |
   | 1   | 3      |
   +-----+--------+
   2 row(s) fetched.
   Elapsed 0.013 seconds.
   
   > select a, max(b) as y_axis from t group by a order by y_axis desc limit 1;
   Execution error: Can't group type: Utf8View
   >
   ```
   
   ### Expected behavior
   
   sql run success
   
   ### Additional context
   
   also check datafusion 50, 49, both not work


-- 
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