andygrove commented on PR #2461: URL: https://github.com/apache/arrow-datafusion/pull/2461#issuecomment-1119848904
> > hmm ok maybe we should not make this change then. Here is the test I was running in postgres: > > Ah, that makes sense as `price` wasn't in the select list (which is technically supposed to be evaluated before the HAVING) > > I bet this would work: > > ```sql > select id, name, price from book having price < 6; > ``` That also fails for me: ``` postgres=# select id, name, price from book having price < 6; ERROR: column "book.id" must appear in the GROUP BY clause or be used in an aggregate function LINE 1: select id, name, price from book having price < 6; ``` -- 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]
