-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove wrong comment about having
#4555
Conversation
@@ -1151,12 +1151,10 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> { | |||
// | |||
// For example: | |||
// | |||
// SELECT c1 AS m FROM t HAVING m > 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any bug for the implementation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently this sql can't work.
is there any bug for the implementation?
Discussion about this, you can see #4556
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Postgres agrees:
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=#
@@ -1151,12 +1151,10 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> { | |||
// | |||
// For example: | |||
// | |||
// SELECT c1 AS m FROM t HAVING m > 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Postgres agrees:
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=#
Which issue does this PR close?
Closes #4554 .
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?