You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/12/09 11:22:52 UTC
[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #4555: fix: remove wrong comment about `having`
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org