Jefffrey commented on issue #4874: URL: https://github.com/apache/arrow-datafusion/issues/4874#issuecomment-1404198980
This seems to be a SQLite specific feature: https://sqlite.org/lang_select.html#bare_columns_in_an_aggregate_query Specifically: > Most other SQL database engines disallow bare columns. If you include a bare column in a query, other database engines will usually raise an error. The ability to include bare columns in a query is an SQLite-specific extension. Indeed when I try the same query (`select id, max(id) max_id from users`) on Postgres I get an error: > SQL Error [42803]: ERROR: column "users.id" must appear in the GROUP BY clause or be used in an aggregate function And I believe this project mainly uses Spark/Postgres as reference for implementation. -- 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]
