arkguil commented on issue #22696: [SPARK-25708][SQL] HAVING without GROUP BY means global aggregate URL: https://github.com/apache/spark/pull/22696#issuecomment-490529740 Indeed. Postgresql fails with `ERROR: column "t.id" must appear in the GROUP BY clause or be used in an aggregate function Position: 8` Basically, HAVING implementation seems very different across RDBMS... But you are right that the standard clearly state that a GROUP BY is REQUIRED: https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#having-clause
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
