alamb commented on code in PR #4555:
URL: https://github.com/apache/arrow-datafusion/pull/4555#discussion_r1044354278


##########
datafusion/sql/src/planner.rs:
##########
@@ -1151,12 +1151,10 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
                 //
                 // For example:
                 //
-                //   SELECT c1 AS m FROM t HAVING m > 10;

Review Comment:
   Postgres agrees:
   
   ```sql
   postgres=# create table t (c1 int);
   CREATE TABLE
   postgres=# insert into t  values (1), (2);
   INSERT 0 2
   postgres=# SELECT c1 AS m FROM t HAVING m > 10;
   ERROR:  column "m" does not exist
   LINE 1: SELECT c1 AS m FROM t HAVING m > 10;
                                        ^
   postgres=# 
   ```



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

Reply via email to