Skip to content

sql: SHOW CREATE ALL ROUTINES #147452

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

OriSavir
Copy link

@OriSavir OriSavir commented May 28, 2025

Addresses #144708
Adds SHOW CREATE ALL ROUTINES, which returns a table with all available routines' create statements.

OriSavir added 6 commits May 28, 2025 14:55
…rator functionality to query

crdb_internal tables for function and procedure create statements
refactor to use IDs to prevent buffer memory
overcapacity

Works towards cockroachdb#144708

Release note (sql change): The SHOW CREATE ALL ROUTINES statement
Release note: None

Previously, there were no tests.
Now, there are more tests than there were before.
This needed to change because tests are good.
To address the lack of tests, I made tests.
Release note: none

Added the show_create_all_routine
test to show_routines test data to prevent
clutter.

Epic: none
Previously, it was failing due to whitespace issues.
I added some whitespace and now it works with --rewrite
enabled.

Release note: None
Epic: none
@OriSavir OriSavir requested review from a team as code owners May 28, 2025 20:12
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@OriSavir OriSavir self-assigned this May 28, 2025
@OriSavir OriSavir changed the title SHOW CREATE ALL ROUTINES sql: SHOW CREATE ALL ROUTINES May 28, 2025
Copy link
Contributor

@Dedej-Bergin Dedej-Bergin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @OriSavir)


docs/generated/sql/bnf/frobnicate_stmt.bnf line 1 at r1 (raw file):

frobnicate_stmt ::=

It seems the frobnicate code was forgotten to be removed here.

Removed the files related to frobnicate, which were
left over from doing the codelab as generated files.

Release note: None
Epic: none
@OriSavir
Copy link
Author

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @OriSavir)

docs/generated/sql/bnf/frobnicate_stmt.bnf line 1 at r1 (raw file):

frobnicate_stmt ::=

It seems the frobnicate code was forgotten to be removed here.

Thanks for pointing that out! Removed the file related, I think it was from running ./dev gen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants