Skip to content

Commit 07c2a68

Browse files
MarcinthecloudOxyjunnetgustolaplabjonesphillip
authored
Adding R2 SQL docs (#25338)
* initial docs * fixed link in index * fix indents in index, add query-data * Improved all docs, added index.mdx in platform also tested examples e2e * removed redundant command * A ton of changes and improvements implemented Jerome's feedback in virtually all docs. Docs are properly organized now. * Update get-started.mdx * Update end-to-end-pipeline.mdx * added dash steps/tabs, moved out of r2, reformatted most of the R2 SQL docs * added new R2 SQL token env variable * adding wrangler commands * Update .gitignore * PCX Review * Update src/content/docs/r2-sql/reference/limitations-best-practices.mdx Co-authored-by: netgusto <[email protected]> * adding improvements from the latest round of reviews * fixed min permissions needed * more improvements from reviews * Update src/content/docs/r2-sql/platform/pricing.mdx Co-authored-by: Nikita Lapkov <[email protected]> * Update src/content/docs/r2-sql/reference/limitations-best-practices.mdx Co-authored-by: Nikita Lapkov <[email protected]> * Update src/content/docs/r2-sql/reference/sql-reference.mdx Co-authored-by: Nikita Lapkov <[email protected]> * Adding improvements from Nikita's review * changed the getting started to match Pipelines for consistency * Small formatting + other changes * fixed typo and added the changelog * Add redirect for troubleshooting guide * Chagnes to changelog * Fixes pipeline, broken links * adding our official r2-sql icon * addressing Yevgen's feedback * fix typo in getting started for r2 sql --------- Co-authored-by: Jun Lee <[email protected]> Co-authored-by: netgusto <[email protected]> Co-authored-by: Nikita Lapkov <[email protected]> Co-authored-by: Phillip Jones <[email protected]>
1 parent 8a470c6 commit 07c2a68

File tree

21 files changed

+2039
-1
lines changed

21 files changed

+2039
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ pnpm-debug.log*
2929
/assets/secrets
3030
/worker/functions/
3131

32-
.idea
32+
.idea

public/__redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,6 +1579,7 @@
15791579
/r2/examples/cloudflare-access/ /r2/tutorials/cloudflare-access/ 301
15801580
/r2/examples/upload-logs-event-notifications/ /r2/tutorials/upload-logs-event-notifications/ 301
15811581
/r2/examples/demo-worker/ /r2/api/workers/workers-api-usage/ 301
1582+
/r2/sql/platform/troubleshooting/ /r2-sql/troubleshooting/ 301
15821583

15831584
# time-services_redirects
15841585
/time-services/nts/usage/ /time-services/nts/ 301
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Announcing R2 SQL
3+
description: Run SQL queries against Apache Iceberg tables in R2 Data Catalog
4+
date: 2025-09-25T13:00:00
5+
products:
6+
- r2-sql
7+
hidden: true
8+
---
9+
10+
import { LinkCard} from "~/components";
11+
12+
Today, we're launching the **open beta** for [R2 SQL](/r2-sql/): A serverless, distributed query engine that can efficiently analyze petabytes of data in [Apache Iceberg](https://iceberg.apache.org/) tables managed by [R2 Data Catalog](/r2/data-catalog).
13+
14+
R2 SQL is ideal for exploring analytical and time-series data stored in R2, such as logs, events from [Pipelines](/pipelines/), or clickstream and user behavior data.
15+
16+
If you already have a table in R2 Data Catalog, running queries is as simple as:
17+
18+
```bash
19+
npx wrangler r2 sql query YOUR_WAREHOUSE "
20+
SELECT
21+
user_id,
22+
event_type,
23+
value
24+
FROM events.user_events
25+
WHERE event_type = 'CHANGELOG' or event_type = 'BLOG'
26+
AND __ingest_ts > '2025-09-24T00:00:00Z'
27+
ORDER BY __ingest_ts DESC
28+
LIMIT 100"
29+
```
30+
31+
To get started with R2 SQL, check out our [getting started guide](/r2-sql/get-started/) or learn more about supported features in the [SQL reference](/r2-sql/sql-reference/). For a technical deep dive into how we built R2 SQL, read our [blog post](https://blog.cloudflare.com/r2-sql-deep-dive/).

0 commit comments

Comments
 (0)