SQL: Expand virtual tables reference, add SHOW/DESCRIBE for new objects#590
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
✅ Deploy Preview for rp-cloud ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
4306bc4 to
670aab6
Compare
docs-team-standards reviewCritical issues
Suggestions
|
docs-team-standards final reviewCritical (must fix)Broken xrefs to pages that don't exist on this branch or on
If the grant/revoke/manage-access pages are coming in a follow-up PR to Suggestions
Impact on files not in this PR
What's New is not flagged because the PR targets the What works well
|
| == Available views | ||
|
|
||
| Redpanda SQL implements the SQL-standard `information_schema` views needed for tool compatibility, plus one extension view for Redpanda-specific concepts that don't fit the standard shape. The standard views follow the SQL specification, so their semantics match PostgreSQL's implementation. | ||
|
|
There was a problem hiding this comment.
@kbatuigas should this intro just include one link to Postgres doc, instead of so many throughout the table?
| |Foreign-key constraints visible to the current role. Standard view, see https://www.postgresql.org/docs/current/infoschema-referential-constraints.html[PostgreSQL documentation^]. | ||
|
|
||
| |`information_schema.role_external_relation_grants` | ||
| |Per-relation EXTERNAL SOURCE grants. Redpanda SQL extension that captures grants whose stored relation pattern is anything other than `\*` (catalog-level grants surface in `information_schema.role_table_grants` instead). See <<information-schema-role-external-relation-grants,below>> for details. |
There was a problem hiding this comment.
this link isn't working + we don't use "below". Maybe just remove the sentence?
| :page-topic-type: reference | ||
|
|
||
| The `ALTER REDPANDA CATALOG` statement modifies connection properties of an existing Redpanda catalog. | ||
| The `ALTER REDPANDA CATALOG` statement modifies connection properties of an existing Redpanda catalog. You can also use it to link the Redpanda catalog to an Iceberg catalog (or detach an existing link) so that queries against the Redpanda catalog return both live records and Iceberg-translated history (records previously written from the topic into the linked Iceberg catalog). See xref:sql:query-data/query-iceberg-topics.adoc[] for details. |
There was a problem hiding this comment.
Reminder about this link not working
micheleRP
left a comment
There was a problem hiding this comment.
reminder about the links, and I left some style suggestions
Co-authored-by: Michele Cyran <michele@redpanda.com>
Co-authored-by: Michele Cyran <michele@redpanda.com>
1a6bf36 to
ba9f587
Compare
Description
This pull request significantly expands and clarifies the Redpanda SQL documentation around catalogs, Iceberg integration, and system metadata access. The updates introduce new SQL statements for listing and describing catalogs, provide detailed documentation for the
information_schemaand system virtual tables, and improve clarity around privileges and filtering. The most important changes are grouped below:New SQL Statements and Catalog Management:
SHOW CATALOGS,SHOW REDPANDA CATALOGS,SHOW KAFKA CATALOGS, andSHOW ICEBERG CATALOGSstatements, including syntax, filtering behavior, and privilege requirements. (modules/reference/pages/sql/sql-statements/show-catalogs.adoc,modules/ROOT/nav.adoc) [1] [2]ALTER REDPANDA CATALOGto cover linking and unlinking with Iceberg catalogs, including new syntax and detailed examples. (modules/reference/pages/sql/sql-statements/alter-redpanda-catalog.adoc)DESCRIBEstatement documentation to supportDESCRIBE ICEBERG CATALOG, clarifying output and usage. (modules/reference/pages/sql/sql-statements/describe.adoc) [1] [2]Tables and Metadata Visibility:
SHOW TABLESdocumentation to distinguish between Redpanda and Iceberg tables, introduce new variants (SHOW REDPANDA TABLES,SHOW ICEBERG TABLES), and explain filtering by catalog and schema. (modules/reference/pages/sql/sql-statements/show-tables.adoc) [1] [2] [3]information_schemanamespace, including therole_external_relation_grantsview and its columns, visibility rules, and usage examples. (modules/reference/pages/sql/information-schema.adoc,modules/ROOT/nav.adoc) [1] [2]System Virtual Tables Enhancements:
modules/reference/pages/sql/system-virtual-tables.adoc)These changes provide users with clearer guidance and more powerful tools for managing and querying Redpanda and Iceberg catalogs, as well as understanding metadata and permissions across the system.
Resolves https://github.com/redpanda-data/documentation-private/issues/
Review deadline: 21 May
Page previews
Checks