-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: compat: Support 'COMMENT ON TABLE foo is 'bar' parsing #21063
Conversation
Thanks! since the code is still empty (and would cause an error) I would recommend leaving out the comments that provide contextual help. Reviewed 2 of 2 files at r1. pkg/sql/parser/sql.y, line 1653 at r1 (raw file):
use unimplementedWithIssue() and link to the issue you're touching. pkg/sql/parser/sql.y, line 1661 at r1 (raw file):
We use spaces not tabs. Comments from Reviewable |
also use the text Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. Comments from Reviewable |
Thank you! Reviewed 1 of 1 files at r2. pkg/sql/parser/sql.y, line 1647 at r2 (raw file):
This comment must be placed inside the action, ie. between the braces { ... } pkg/sql/parser/sql.y, line 1652 at r2 (raw file):
ditto Comments from Reviewable |
ab530a3
to
fce3599
Compare
@mjibson this PR is failing CI due to some incorrect bnf file. Can you advise Zachary how to re-generate this file? I cannot seem to find any documentation about it. Reviewed 1 of 1 files at r3. Comments from Reviewable |
@ZacharyThomas your PR seems ready to me but CI is saying something is wrong. Unfortunately this is a new lint error which I am not familiar with. My colleague who introduced this check earlier is out on vacation and will only be back next Wednesday. Are you ok investigating this on your own or waiting until next week? |
Filed the cause of the CI error as #21081. Review status: all files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. Comments from Reviewable |
@ZacharyThomas my colleague Jordan explained what you need to do here:
then commit the changed files. Then we can merge your change. Thanks! |
Many ORMs use Postgres' COMMENT statement to label database objects. This commit handles the grammar changes necessary to support the COMMENT syntax for Columns and Tables. The implementaiton of COMMENT is left for a future PR. Release note (sql change): allow parsing of COMMENT ON syntax
fce3599
to
230b356
Compare
I was super confused so thanks for that! Hopefully this solves it. |
yes, perfect. Thank you again! |
TFTR! |
Many ORMs use Postgres' COMMENT statement to label database objects. This commit
handles the grammar changes necessary to support the COMMENT syntax for
Columns and Tables. The implementaiton of COMMENT is left for a future PR.
Release note (sql change): allow parsing of COMMENT ON syntax
This touches on #19472