Data Lake Billing: Catalog Operations, Pipeline Transforms and SQL Scans
How Basin Catalog, Pipelines, and SQL are metered, what free tiers apply, and how those charges stack with object storage.
This page summarises Cloudflare documentation on billing and pricing for Basin—the stack that includes Cloudflare Pipelines, R2 Data Catalog (also called Basin Catalog), and R2 SQL (Basin SQL). If you run streaming ingest, Apache Iceberg tables on R2, or serverless SQL over those tables, these are the billable dimensions and how they combine with standard R2 pricing.
Billing status: when Basin usage hits your invoice
Section titled “Billing status: when Basin usage hits your invoice”Billing for R2 Data Catalog, Cloudflare Pipelines, and R2 SQL is enabled on non-enterprise accounts. Usage beyond each product’s included monthly allocation appears on your next invoice.
Billing is now enabled for R2 Data Catalog on non-enterprise accounts. R2 Data Catalog usage beyond the included free tier will appear on your next invoice.
— Cloudflare, Billing is now enabled for R2 Data Catalog
The same pattern applies to Pipelines and R2 SQL. Before billing went live, Cloudflare stated it would give at least 30 days notice; see the earlier R2 Data Catalog pricing announced, Pipelines pricing announced, and R2 SQL pricing announced posts.
Basin Catalog and Basin SQL require an active R2 subscription and a linked payment card on the account.
Billable dimensions at a glance
Section titled “Billable dimensions at a glance”Basin pricing is additive: Pipelines, Catalog, and SQL each have their own meters, and R2 storage, Class A/B operations, and related R2 lines are billed separately. Basin pricing states that its tables and examples exclude R2 rates.
| Product | What you pay for | Monthly included (typical) | Additional rate |
|---|---|---|---|
| Cloudflare Pipelines | SQL transform volume; sink delivery volume | Workers Paid: 50 GB transforms + 50 GB sinks (shared allowance per sink pricing page) | Transforms: $0.04 / GB; JSON sinks: $0.03 / GB; Parquet/Iceberg sinks: $0.06 / GB |
| R2 Data Catalog / Basin Catalog | Catalog metadata operations; optional compaction | 1M catalog ops; 10 GB compaction data; 1M compaction objects | Ops: $9.00 / million; compaction data: $0.005 / GB; compaction objects: $2.00 / million |
| R2 SQL / Basin SQL | Compressed data read to run queries | 10 GB data scanned | $0.0025 / GB ($2.50 / TB) |
Stream ingress into a Pipeline is free regardless of volume:
Ingress into a Pipeline stream remains free regardless of volume
— Cloudflare, Billing is now enabled for Pipelines
On Workers Free, published Pipelines pricing listed 1 GB / month per dimension for SQL transforms and sinks before billing; once billing is enabled, changelog examples emphasise Workers Paid includes (50 GB / month for both SQL transforms and sinks).
R2 Data Catalog billing: catalog operations and compaction
Section titled “R2 Data Catalog billing: catalog operations and compaction”R2 Data Catalog is a managed Apache Iceberg catalog in R2 buckets, queryable by Iceberg-compatible engines (Spark, Snowflake, DuckDB, etc.), as described in R2 Data Catalog pricing announced.
Catalog operations: what counts toward the million-operation meter
Section titled “Catalog operations: what counts toward the million-operation meter”Catalog operations are metadata requests—for example creating tables, reading table metadata, and updating table properties:
Catalog operations: $9.00 / million operations for metadata requests such as creating tables, reading table metadata, and updating table properties.
— Cloudflare, Billing is now enabled for R2 Data Catalog
Included: 1 million operations / month. Above that: $9.00 / million.
Compaction billing: only when automatic compaction is on
Section titled “Compaction billing: only when automatic compaction is on”Compaction has two meters, and both apply only when automatic compaction is turned on for a table:
Compaction: $0.005 / GB processed and $2.00 / million objects processed. These charges only apply when automatic compaction is turned on for a table.
— Cloudflare, Billing is now enabled for R2 Data Catalog
| Compaction dimension | Included / month | Overage |
|---|---|---|
| Data processed | 10 GB | $0.005 / GB |
| Objects processed | 1 million objects | $2.00 / million objects |
R2 storage for table data is not part of Catalog pricing tables—for example $0.015 / GB-month for 50 GB stored is calculated separately per Basin Catalog pricing example 1.
For high ingest, example 2 (streaming at 20 MB/s) shows R2 storage often dominates total cost versus catalog operations.
Cloudflare Pipelines billing: SQL transforms and sinks (egress)
Section titled “Cloudflare Pipelines billing: SQL transforms and sinks (egress)”Pipelines ingest events, run stateless SQL transforms (filter, reshape, unnest, cast, compute), and write to R2 as JSON, Parquet, or Iceberg—as in Pipelines pricing announced.
SQL transforms: billed per GB processed
Section titled “SQL transforms: billed per GB processed”| Dimension | Rate | Workers Paid included |
|---|---|---|
| SQL transforms | $0.04 / GB |
50 GB / month |
Sinks: JSON vs Parquet/Iceberg and uncompressed egress volume
Section titled “Sinks: JSON vs Parquet/Iceberg and uncompressed egress volume”Sink charges depend on format and volume delivered to the sink:
Sinks (egress): $0.03 / GB for JSON output, $0.06 / GB for Parquet or Iceberg output.
— Cloudflare, Billing is now enabled for Pipelines
Basin Pipelines pricing notes sink pricing is based on uncompressed data delivered to the destination. Parquet/Iceberg sinks cost more because of columnar encoding and Iceberg table management.
Writing to R2 buckets still incurs standard R2 storage and operations. Writing to Iceberg tables also incurs R2 Data Catalog / Basin Catalog charges (Pipelines billing changelog).
Pipelines billing example: 500 GB in, 300 GB to Iceberg
Section titled “Pipelines billing example: 500 GB in, 300 GB to Iceberg”From the Pipelines billing enabled example (500 GB ingested, SQL transform on full stream, 300 GB to Iceberg sink):
| Dimension | Usage | Included | Billable | Cost |
|---|---|---|---|---|
| Streams | 500 GB | Unlimited | 0 GB | $0.00 |
| SQL transforms | 500 GB | 50 GB | 450 GB | $18.00 |
| Sinks (Iceberg) | 300 GB | 50 GB | 250 GB | $15.00 |
| Total | $33.00 |
R2 SQL billing: data scanned from compressed objects
Section titled “R2 SQL billing: data scanned from compressed objects”R2 SQL is a serverless query engine over Iceberg tables in R2 Data Catalog (R2 SQL pricing announced).
Data scanned: compressed bytes and per-query minimum
Section titled “Data scanned: compressed bytes and per-query minimum”Data scanned: $0.0025 / GB ($2.50 / TB) of compressed data read from R2 to execute your query.
— Cloudflare, Billing is now enabled for R2 SQL
Basin SQL pricing clarifies:
- Data scanned = compressed bytes read from R2 (a 100 MB Parquet file on disk bills as 100 MB scanned).
- Minimum per query: 10 MB (even if the scan is smaller).
- Failed queries (syntax/system before execution, or runtime mid-execution) are not charged for SQL scan.
EXPLAIN,SHOW,DESCRIBEdo not scan data (no SQL scan charge); R2 and Catalog operation charges may still apply.
R2 SQL pricing is additive to R2 storage/operations and Catalog charges. R2 does not charge for egress, so there is no separate data-transfer line for queries inside Cloudflare’s network (R2 SQL billing). When the query engine reads files, those reads can count as R2 Class B operations (Basin SQL pricing).
All plans include 10 GB data scanned / month.
R2 SQL example: storage plus light querying
Section titled “R2 SQL example: storage plus light querying”From Basin SQL example 1 (500 GB Parquet in Catalog, 50 GB compressed scanned in the month):
| Dimension | Usage | Included | Billable | Cost |
|---|---|---|---|---|
| R2 storage | 500 GB-month | 10 GB-month | 490 GB-month | $7.35 |
| Basin SQL (data scanned) | 50 GB | 10 GB | 40 GB | $0.10 |
| Total | $7.45 |
Example 2 (10 TB stored, 50 TB scanned, heavy Catalog use) shows how scan volume and catalog operations scale together.
End-to-end Basin stack: how meters stack on one pipeline
Section titled “End-to-end Basin stack: how meters stack on one pipeline”Basin pricing walks through a full path: 500 GB stream ingress → SQL transform → 300 GB to Catalog, plus Catalog compaction and SQL queries. Ingress is $0; transforms and sinks use the Pipelines table; Catalog and SQL use their own included tiers. The documented Basin-only subtotal for that scenario is $33.15 before any R2 storage/operation lines.
If you query the same tables with DuckDB or Trino instead of R2 SQL, Basin SQL scan charges are $0, but Catalog (and R2) charges still apply (Basin Catalog with DuckDB or Trino).
R2 object storage lines that appear alongside Basin
Section titled “R2 object storage lines that appear alongside Basin”Even when Basin meters are within free tiers, R2 still bills storage and operations per R2 pricing:
| R2 dimension | Free tier (Standard storage) | Typical overage rate |
|---|---|---|
| Storage | 10 GB-month / month | $0.015 / GB-month (Standard) |
| Class A (writes) | 1 million / month | $4.50 / million |
| Class B (reads) | 10 million / month | $0.36 / million |
| Egress to Internet | Free | Free |
How charges accrue lists R2 Class A/B and storage when Workers or origin logic touches R2. How Cloudflare billing works explains that $0.00 line items for unused dimensions on an active product are expected—they confirm the product is enabled, not that something is wrong.
Cost controls and common mistakes
Section titled “Cost controls and common mistakes”Strategies from Optimize costs that affect Basin-heavy workloads:
| Strategy | What it reduces |
|---|---|
| R2 lifecycle rules → Infrequent Access for cold data | Storage cost for archival data (watch retrieval and minimum duration) |
| Batch R2 reads instead of per-object reads | Class B operation count |
Cache-Control on R2 objects to use CDN cache |
Class B reads for cached objects |
Common mistakes implied by the pricing docs:
- Ignoring uncompressed sink volume—Pipeline sink billing uses uncompressed egress; heavy JSON/Parquet sink GB drives cost more than “compressed on disk” intuition (Basin Pipelines pricing).
- Leaving compaction on without budgeting—Compaction meters run only when automatic compaction is enabled; large file counts hit objects processed (Basin Catalog pricing).
- Many small SQL queries—Each query bills at least 10 MB scanned (Basin SQL pricing).
- Forgetting R2 rounding—Operations and GB-month usage round up to the next billing unit (R2 pricing).
- Assuming Basin includes storage—Every Basin pricing example directs you to R2 pricing for stored bytes and API operations.
How to check this on your site
Section titled “How to check this on your site”-
In the Cloudflare dashboard, open Billing and review the current invoice or usage breakdown, using How Cloudflare billing works to interpret zero-amount product lines.
-
Compare your Pipelines transform and sink GB against the 50 GB / month included amounts on Workers Paid (Basin Pipelines pricing) and replay the arithmetic from Billing is now enabled for Pipelines.
-
For Catalog, count whether automatic compaction is on and whether catalog operations and compaction GB/objects exceed the monthly free tiers (Basin Catalog pricing).
-
For R2 SQL, estimate compressed bytes scanned per query and apply the 10 MB minimum and 10 GB monthly inclusion (Basin SQL pricing); cross-check R2 Class B reads if applicable.
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page disagrees with your invoice or the official docs, email yimasynthetic@gmail.com with the page URL and the exact statement you want clarified.