-
Notifications
You must be signed in to change notification settings - Fork 3.9k
sql/parser: remove no longer used keywords #147386
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
Conversation
It looks like your PR touches SQL parser code but doesn't add or edit parser tests. Please make sure you add or edit parser tests if you edit the parser. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
e7100fc
to
d576148
Compare
For some reason, Go library bazel target for the PLpgSQL parser package was named `plpgparser`. This creates a problem with an attempt to add a test that lives in `parser` (as opposed to `parser_test`), so rename the target to `parser` which follows the convention elsewhere. (I eventually decided against adding a test but thought it'd be nice to clean things up.) Release note: None
This commit removes a handful of unreserved keywords that are no longer used. Additionally, it refactors existing `reserved_keywords.awk` into a shell script that is run via a unit test to assert that no longer used keywords get removed promptly. (I tried applying the same script to PLpgSQL and JSONPath parsers, and it found nothing for the latter and produced many false positives for the former, so I decided to not include the corresponding test.) Release note: None
d576148
to
f50a1b4
Compare
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.
Reviewed 10 of 10 files at r1, 6 of 6 files at r2, all commit messages.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @yuzefovich)
TFTR! bors r+ |
plpgsql/parser: rename bazel target name for the package
For some reason, Go library bazel target for the PLpgSQL parser package
was named
plpgparser
. This creates a problem with an attempt to adda test that lives in
parser
(as opposed toparser_test
), so renamethe target to
parser
which follows the convention elsewhere. (Ieventually decided against adding a test but thought it'd be nice to
clean things up.)
sql/parser: remove no longer used keywords
This commit removes a handful of unreserved keywords that are no longer
used. Additionally, it refactors existing
reserved_keywords.awk
intoa shell script that is run via a unit test to assert that no longer used
keywords get removed promptly. (I tried applying the same script to
PLpgSQL and JSONPath parsers, and it found nothing for the latter and
produced many false positives for the former, so I decided to not
include the corresponding test.)
Epic: None
Release note: None