Skip to content

SQL GA - Get started#571

Open
kbatuigas wants to merge 14 commits into
rp-sqlfrom
DOC-1856-document-feature-sql-engine-deployment-in-cloud
Open

SQL GA - Get started#571
kbatuigas wants to merge 14 commits into
rp-sqlfrom
DOC-1856-document-feature-sql-engine-deployment-in-cloud

Conversation

@kbatuigas
Copy link
Copy Markdown
Contributor

@kbatuigas kbatuigas commented May 2, 2026

Description

This pull request adds comprehensive "Get Started" documentation for Redpanda SQL, including new guides for enabling, connecting to, and using Redpanda SQL on BYOC clusters. The changes introduce a new navigation structure and detailed step-by-step instructions for both the Cloud Console and API workflows, as well as a hands-on quickstart for querying streaming data.

New Redpanda SQL onboarding documentation:

  • Added a new "Get Started" section for Redpanda SQL, including an overview index page (index.adoc), a quickstart guide for connecting and querying with psql (sql-quickstart.adoc), and a detailed guide for enabling, scaling, and disabling Redpanda SQL on BYOC clusters (deploy-sql-cluster.adoc). [1] [2] [3]

Navigation and structure updates:

  • Updated nav.adoc to include links to the new "Get Started," "Quickstart," and "Enable Redpanda SQL" guides under the Redpanda SQL section, improving discoverability and organization of onboarding content.

Resolves https://github.com/redpanda-data/documentation-private/issues/
Review deadline: 19 May

Page previews

https://deploy-preview-571--rp-cloud.netlify.app/redpanda-cloud/sql/get-started/sql-quickstart/
https://deploy-preview-571--rp-cloud.netlify.app/redpanda-cloud/sql/get-started/deploy-sql-cluster/

Checks

  • New feature
  • Content gap
  • Support Follow-up
  • Small fix (typos, links, copyedits, etc)

@netlify
Copy link
Copy Markdown

netlify Bot commented May 2, 2026

Deploy Preview for rp-cloud ready!

Name Link
🔨 Latest commit 55bf450
🔍 Latest deploy log https://app.netlify.com/projects/rp-cloud/deploys/6a0ea0da7072d70008b270dc
😎 Deploy Preview https://deploy-preview-571--rp-cloud.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 2, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4db9b76c-966a-4e6e-8345-2b855b84117d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch DOC-1856-document-feature-sql-engine-deployment-in-cloud

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Member

@andrewhsu andrewhsu left a comment

Choose a reason for hiding this comment

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

CREATE TABLE command needs to change to match web ui

Comment thread modules/sql/pages/get-started/sql-quickstart.adoc Outdated
@kbatuigas kbatuigas force-pushed the DOC-1856-document-feature-sql-engine-deployment-in-cloud branch from ae3ae40 to 2dd0c5a Compare May 11, 2026 23:03
@kbatuigas kbatuigas force-pushed the DOC-1856-document-feature-sql-engine-deployment-in-cloud branch from 2dd0c5a to fb15751 Compare May 13, 2026 19:07
@kbatuigas kbatuigas marked this pull request as ready for review May 14, 2026 01:47
@kbatuigas kbatuigas requested a review from a team as a code owner May 14, 2026 01:47
@kbatuigas kbatuigas requested a review from jacekseligarp May 14, 2026 01:47
Comment thread modules/sql/pages/get-started/deploy-sql-cluster.adoc Outdated
Comment thread modules/sql/pages/get-started/deploy-sql-cluster.adoc

To enable, scale, or disable SQL on an existing cluster, you also need the cluster ID, which you can find in the *Details* section of the cluster overview in the Cloud Console.

// TODO: Confirm UI functionality
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@c-julin should have knowledge about this matter

Comment thread modules/sql/pages/get-started/deploy-sql-cluster.adoc
-H "Content-Type: application/json"
----
+
When the operation is complete, the response shows `"state": "STATE_COMPLETED"`.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We need to talk a bit more about it, I'll send you a link to slack thread.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added some guidance here https://github.com/redpanda-data/cloud-docs/pull/571/changes#diff-53e047807d28a0255b66ea613665a131405259a0926d855ba2b3ab3dd13fbe5bR129 but this is based on current state afaik, we can update later if the UX is changed

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you should sync with @c-julin on this one :)


Redpanda SQL supports horizontal scaling from 1 to 9 nodes per cluster. Scaling to 0 is not supported. To remove Redpanda SQL from a cluster, disable the SQL engine instead.

// TODO: Confirm UI functionality
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@simonlord is adding this


== Verify the SQL engine is running

After you enable Redpanda SQL, the cluster overview page in the Cloud console shows the *SQL* tab. The *Details* pane also displays the number of SQL nodes deployed with the cluster. Provisioning may take several minutes.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

30mins is a safe boundary here imho

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added

Comment thread modules/sql/pages/get-started/deploy-sql-cluster.adoc

[,sql]
----
SHOW NODES; -- List SQL compute nodes and their status
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'll think adding some queries related to CATALOG objectst may be a good idea, someone from Oxla core should be able to provide insights on this matter.

Comment thread modules/sql/pages/get-started/deploy-sql-cluster.adoc Outdated
Comment thread modules/sql/pages/get-started/deploy-sql-cluster.adoc Outdated
Comment thread modules/sql/pages/get-started/deploy-sql-cluster.adoc Outdated
Comment thread modules/sql/pages/get-started/sql-quickstart.adoc Outdated
* https://www.postgresql.org/download/[`psql`^] (PostgreSQL client) installed on your local machine.

// TODO: Verify the exact connection string format and where users get credentials.
// From PRD: SCRAM auth preserved, connection string available in Cloud Console and API response.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is 'the legacy auth method' that Oxla is preserving for tools like PowerBI etc. @grzebiel / @paulzhang97 can provide more insights.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We've discussed it f2f. Should be clear now.
TLDR: connection string is availble in console. rpk version supporting rpk claud auth token required

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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


Redpanda SQL is deny-all by default. All queries to Redpanda SQL run under a single super-user SASL credential associated with `default_redpanda_catalog`, but the engine enforces per-user table access through Redpanda SQL `GRANT` statements. To let a non-admin user query a table, the admin creates a role and grants access:

// TODO: Confirm the exact GRANT mechanism with engineering. Open questions:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@grzebiel here also

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

discussed on f2f meeting.
TLDR: two permissions available in the RBAC: dataplane->sql->{access, manage}.
manage -> sql superuser able to read and grand accessess to all the topics/tables
access -> regular user. No access to any catalog unless granted by superuser.

Standard sql grant system to manage access to catalogs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Access mechanism explained in separate PR https://github.com/redpanda-data/cloud-docs/pull/580/changes

kbatuigas and others added 9 commits May 18, 2026 20:28
Updates the Enable Redpanda SQL page so the horizontal-scaling range is
1 to 9 nodes (down from 1 to 12) per the PM SME 2026-05-07. Adds a TODO
on the Disable Redpanda SQL section listing the specific behaviors to
confirm with engineering before publication: what state is purged, what
is deleted from object storage, the effect on topic and Schema Registry
data, in-flight query error behavior, and re-enable semantics.

Updates the quickstart so it explicitly targets an admin who can view the
SQL connection details in the Cloud Console, and adds an optional
admin-run mini-section showing how to grant a non-admin user SELECT
access on a Redpanda SQL table. Includes a TODO referencing
qa-questions.md #21 to refine the role/grant example once engineering
confirms whether the SQL GRANT statement alone enforces per-user table
access or whether an additional ACL/Kafka-side step is required.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Andrew Hsu <xuzuan@gmail.com>
@kbatuigas kbatuigas force-pushed the DOC-1856-document-feature-sql-engine-deployment-in-cloud branch from 2731f43 to a0b51f4 Compare May 19, 2026 03:30
Comment thread modules/sql/pages/get-started/deploy-sql-cluster.adoc
@simonlord
Copy link
Copy Markdown
Contributor

Hey Kat, just FYI we now have a settings page UI for enabling/scaling/disabling oxla on an existing cluster so we could upadrte this page with screenshots instead of getting the user to run curl api requests.

The UI is still changing but it is there

@simonlord
Copy link
Copy Markdown
Contributor

It would also be useful to call out RPSQL is only available for UBB based orgs

Copy link
Copy Markdown

@mattschumpert mattschumpert left a comment

Choose a reason for hiding this comment

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

Blocking because of the comment on deletion of all Iceberg Topic data on disablement of SQL. This would imply catastrophic data loss, which is not true

Comment thread modules/sql/pages/get-started/deploy-sql-cluster.adoc Outdated
Comment thread modules/sql/pages/get-started/deploy-sql-cluster.adoc
Comment thread modules/sql/pages/get-started/deploy-sql-cluster.adoc Outdated
Comment thread modules/sql/pages/get-started/deploy-sql-cluster.adoc
Skip this section if you already have a Redpanda topic with a schema registered in Schema Registry that you want to query.
====

If you don't have a schema-registered topic to query yet, follow these steps to create an `orders` topic with a small set of sample records. Redpanda SQL reads the topic's schema from Schema Registry to map fields to SQL columns, so the topic must have a registered schema before you can query it.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@kbatuigas this wording doesn't compute for me. You mean : if you don't have a topic with a corresponding schema in the schema registry ....

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Rephrased to

If you don't have a topic with a corresponding schema in Schema Registry yet, follow these steps to create an orders topic with a small set of sample records.

+
Redpanda SQL reads the registered schema and maps each top-level field to a SQL column.
+
Records produced through the Cloud Console don't carry the Schema Registry wire-format prefix, so the example sets `confluent_wire_protocol = 'false'`. If your producer client adds the wire format, set this option to `'true'` or omit it. For details on this and other CREATE TABLE options, see xref:reference:sql/sql-statements/create-table.adoc[CREATE TABLE].
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Don't we have some tech debt here @weeco @r-vasquez where Console doesn't/can't use wire format but RPK does by default. Seems like it would be worth fixing so we can do both? That said there is a new header-based option for storing schema IDs in Confluent FYI

Comment thread modules/sql/pages/get-started/sql-quickstart.adoc Outdated
Copy link
Copy Markdown

@jacekseligarp jacekseligarp left a comment

Choose a reason for hiding this comment

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

Cloud part looks fine.
Let's not forget about tf-provider:
https://docs.redpanda.com/redpanda-cloud/manage/terraform-provider/
Once it lands ofc.

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.

6 participants