You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Jefffrey (via GitHub)" <gi...@apache.org> on 2023/01/24 10:11:51 UTC

[GitHub] [arrow-datafusion] Jefffrey commented on issue #4874: Sub Query bug

Jefffrey commented on issue #4874:
URL: https://github.com/apache/arrow-datafusion/issues/4874#issuecomment-1401676081

   This seems to be working as intended, since the subquery is incorrect:
   
   ```sql
   select id, max(id) max_id from users
   ```
   
   If you specify a non-aggregate column in the project list then you also need a group by, like so:
   
   ```sql
   select id, max(id) max_id from users group by id
   ```
   
   Though I'm not sure what your query is intended to do.


-- 
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-unsubscribe@arrow.apache.org

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