Skip to content

Conversation

@ahmedabu98
Copy link
Contributor

@ahmedabu98 ahmedabu98 commented Oct 14, 2025

Addresses #35637

Adds the following commands:

SHOW CATALOGS [ LIKE regex_pattern ]

+---------------------------------------+
| Catalog Name                | Type    |
+---------------------------------------+
| default                     | local   |
| my_catalog                  | local   |
| my_very_long_catalog_name   | local   |
+---------------------------------------+

SHOW DATABASES [ ( FROM | IN )? catalog_name ] [ LIKE regex_pattern ]

+-----------------------------------------+
| Databases in my_catalog                 |
+-----------------------------------------+
| default                                 |
| my_database_that_has_a_very_long_name   |
| my_db                                   |
| my_other_db                             |
+-----------------------------------------+

SHOW TABLES [ ( FROM | IN )? [ catalog_name '.' ] database_name ] [ LIKE regex_pattern ]

+--------------------------------------------+
| Tables in my_catalog.my_db        | Type   |
+--------------------------------------------+
| my_other_table                    | text   |
| my_other_table_with_a_long_name   | test   |
| my_table                          | text   |
+--------------------------------------------+

SHOW CURRENT CATALOG

my_catalog (type: iceberg)

SHOW CURRENT DATABASE

my_db

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @ahmedabu98, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly improves the introspection capabilities of the Beam SQL CLI by adding a suite of SHOW commands. These commands provide users with a clear and structured way to explore the available catalogs, databases, and tables within their SQL environment, making it easier to understand and navigate the data landscape. The changes involve updates to the SQL parser, core catalog management, and new classes to handle the execution and formatted output of these commands.

Highlights

  • New SQL SHOW Commands: Introduced SHOW CATALOGS, SHOW DATABASES, SHOW TABLES, SHOW CURRENT CATALOG, and SHOW CURRENT DATABASE commands to the Beam SQL CLI.
  • Catalog and Database Introspection: Added functionality to list available catalogs, databases within the current catalog, and tables within the current database, enhancing visibility into the SQL environment.
  • Parser and Schema Integration: Integrated the new SHOW commands into the SQL parser and extended the Catalog, CatalogSchema, and BeamCalciteSchema interfaces and implementations to support retrieving and displaying this metadata.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@ahmedabu98
Copy link
Contributor Author

Failing tests are unrelated

@ahmedabu98
Copy link
Contributor Author

assign set of reviewers

@github-actions
Copy link
Contributor

Assigning reviewers:

R: @m-trieu for label java.

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@github-actions
Copy link
Contributor

Reminder, please take a look at this pr: @m-trieu

@github-actions
Copy link
Contributor

Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment assign to next reviewer:

R: @kennknowles for label java.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

Reminder, please take a look at this pr: @kennknowles

@derrickaw
Copy link
Collaborator

waiting on author

@ahmedabu98
Copy link
Contributor Author

@kennknowles thx for the comments. This is ready for another review

cc @talatuyarer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants