Skip to content

Commit 8f7f5e9

Browse files
fixed typo and added the changelog
1 parent 5a67919 commit 8f7f5e9

File tree

2 files changed

+56
-2
lines changed

2 files changed

+56
-2
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: Announcing R2 SQL
3+
description: Run SQL queries against Apache Iceberg tables in R2 Data Catalog
4+
date: 2025-09-25
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: A serverless, distributed query engine that can efficiently analyze petabytes of data in Apache Iceberg tables managed by [R2 Data Catalog](/r2/data-catalog).
13+
14+
## What makes R2 SQL special?
15+
R2 SQL was built from the ground up to take advantage of Cloudflare's globally distributed compute, network and storage. Just some of the innovations and optimizations this enabled us to make include:
16+
- **Intelligent Query Planner**: R2 SQL utilizes R2 Data Catalog's metadata to reduce reading unnecessary files before reading a single byte, reducing I/O overhead and latency.
17+
- **Streaming execution pipeline**: R2 SQL begins processing data immediately as metadata continues to stream to the query planner, minimizing latency and allowing work to be efficiently parallelized.
18+
- **Truly serverless**: There's no infrastructure to manage or compute to scale. Just submit a query and Cloudflare's global compute infrastructure takes care of the rest.
19+
20+
There's so much more that went into building R2 SQL - check out the [technical deep dive blog post](https://blog.cloudflare.com/r2-sql-deep-dive/) that goes into more details.
21+
22+
# Give it a try
23+
24+
Give our[getting started guide](/r2-sql/getting-started) a try. If you already have tables in R2 Data Catalog, running queries is as simple as:
25+
26+
```bash
27+
export WRANGLER_R2_SQL_AUTH_TOKEN=<R2_API_TOKEN>
28+
29+
npx wrangler r2 sql query "YOUR_WAREHOUSE" "
30+
SELECT
31+
user_id,
32+
event_type,
33+
value,
34+
__ingest_ts
35+
FROM events.user_events
36+
WHERE (event_type = 'CHANGELOG' or event_type = 'BLOG')
37+
AND __ingest_ts BETWEEN '2025-09-24T01:00:00Z' AND '2025-09-25T01:00:00Z'
38+
ORDER BY __ingest_ts DESC
39+
LIMIT 1000"
40+
```
41+
42+
## Learn more
43+
44+
<LinkCard
45+
title="Getting started"
46+
href="/r2-sql/getting-started"
47+
description="Learn how to query tables in R2 Data Catalog with R2 SQL"
48+
/>
49+
50+
<LinkCard
51+
title="SQL Reference"
52+
href="/r2-sql/sql-reference"
53+
description="Learn more about what features are available today"
54+
/>

src/content/docs/r2-sql/sql-reference.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ LIMIT 1000
196196
### Null Handling
197197

198198
```sql
199-
SELECT user_id, session_id, timestamp
199+
SELECT user_id, session_id, date_column
200200
FROM user_events
201201
WHERE session_id IS NOT NULL
202-
AND timestamp >= '2024-01-01'
202+
AND date_column >= '2024-01-01'
203203
ORDER BY timestamp
204204
LIMIT 500
205205
```

0 commit comments

Comments
 (0)