Skip to content
AnswerWell geo Documentation

Research · 5 min read · Answerwell

Pipeline Streams, Sinks, SQL Transformations, and API v1 Migration

How Cloudflare Basin Pipelines connect streams to sinks with SQL, sink limits, and moving from Pipelines API v0 to v1 in the SDK.

This page summarizes Cloudflare documentation for Basin Pipelines: ingesting data through streams, storing or exporting it through sinks, and running SQL transformations between them. It also covers the Pipelines API v1 surface and TypeScript SDK changes that replace deprecated v0 calls with createV1, listV1, and dedicated Sinks and Streams clients.

Basin Pipelines: what streams, sinks, and pipelines do

Section titled “Basin Pipelines: what streams, sinks, and pipelines do”

Streams are where pipeline data is ingested. Sinks are where data is written for storage or downstream use. A pipeline is the SQL layer that maps from a stream into a sink.

Create, configure, and manage SQL transformations between streams and sinks.

— Cloudflare, Pipelines

You manage streams with create, view, update, and delete operations described in Manage streams. Sinks are created and removed (not updated in place) as described in Manage sinks. End-to-end pipeline configuration is covered in Manage pipelines.

Streams and sinks can be operated with Wrangler or the API, per Streams and Sinks.

SQL data flow: how to move everything from stream to sink

Section titled “SQL data flow: how to move everything from stream to sink”

The canonical pattern for copying an entire stream into a sink is a single INSERT … SELECT statement.

Transfer all data from stream to sink:

INSERT INTO my_sink SELECT * FROM my_stream

— Cloudflare, Manage pipelines

In practice you replace my_stream and my_sink with your resource names and extend the SELECT when you need filtering, aggregation, or column projection. The pipeline product is built around that SQL model rather than imperative “move bytes” APIs.

Manage sinks: create, view, and delete (not in-place edit)

Section titled “Manage sinks: create, view, and delete (not in-place edit)”

Sink workflows are create, inspect configuration, and delete when obsolete.

Learn how to:

  • Create and configure sinks for data storage
  • View sink configuration
  • Delete sinks when no longer needed

— Cloudflare, Manage sinks

Sink limitations: why you must delete and recreate to change config

Section titled “Sink limitations: why you must delete and recreate to change config”

Sinks are immutable after creation. Any change to sink configuration requires deleting the sink and creating a new one with the desired settings.

Sinks cannot be modified after creation. To change sink configuration, you must delete and recreate the sink.

— Cloudflare, Manage sinks

There is also a jurisdiction constraint on one sink type:

The Basin Catalog Sink does not currently support writing to R2 buckets into a different jurisdiction.

— Cloudflare, Manage sinks

Manage streams: ingestion settings you can update

Section titled “Manage streams: ingestion settings you can update”

Streams support full lifecycle management including updates to stream settings, unlike sinks.

Learn how to:

  • Create and configure streams for data ingestion
  • View and update stream settings
  • Delete streams when no longer needed

— Cloudflare, Manage streams

Streams are the right place to adjust ingestion-side behavior; sinks remain fixed until recreated.

Pipelines API v0 to v1: SDK methods, Sinks, and Streams

Section titled “Pipelines API v0 to v1: SDK methods, Sinks, and Streams”

Automation that used Pipelines API v0 must move to v1. The same migration note appears across Cloudflare SDK and platform changelogs.

Entire v0 API deprecated; use v1 methods (createV1, listV1, etc.)
New sub-resources: Sinks, Streams

— Cloudflare, Cloudflare TypeScript SDK v6.0.0-beta.1

On client.pipelines in v1, operations split by resource:

Area v1 operations (SDK)
Sinks create, list, delete, get
Streams create, update, list, delete, get

The table reflects changelog entries for Pipelines v1 (client.pipelines); equivalent text appears in core platform, developer platform, fundamentals, and SDK product changelog pages.

  • Calling undecorated v0 pipeline methods after upgrading the SDK, instead of createV1, listV1, and related v1 names.
  • Assuming sink update exists in the API because stream update does; v1 still exposes sink get / delete / create, not modify-in-place.
  • Creating a pipeline SQL job before both stream and sink exist and match the names used in INSERT INTO … SELECT … FROM ….

Radar SDK changes (when you upgrade the same client)

Section titled “Radar SDK changes (when you upgrade the same client)”

The same SDK release batch that documents Pipelines v1 also documents Radar typing and V2 method signature changes. These are separate from Basin Pipelines SQL but affect one shared TypeScript client upgrade.

dataSource: string → typed enum (23 values)
eventType: string → typed enum (6 values)
V2 methods require dimension parameter (breaking signature change)

— Cloudflare, Cloudflare TypeScript SDK v6.0.0-beta.1

Radar also gained geolocation helpers and dimension-based V2 summaries in the client:

Added geolocations.list(), geolocations.get() methods
Added V2 dimension-based methods (summaryV2, timeseriesGroupsV2) to radar sub-resources

— Cloudflare, changelog

HTTP, DNS, and NetFlows Radar APIs on the wire continue to evolve (for example AS and location dimensions and region filtering per Radar release notes); SDK V2 methods expect an explicit dimension argument, so older call sites that omitted it need code changes even if REST paths are unchanged.

  1. In the Cloudflare dashboard, open Basin Pipelines and confirm each active pipeline’s SQL references existing stream and sink names, matching the INSERT INTO … SELECT * FROM … pattern from Manage pipelines.
  2. Try a intentional sink setting change: verify the UI/API only allows delete + recreate, consistent with sink limitations.
  3. If you use the TypeScript SDK, search the codebase for pre-v1 pipeline calls and replace them with createV1, listV1, and client.pipelines Sinks / Streams methods per SDK v6 beta notes.
  4. After a SDK bump, compile Radar integrations and fix dataSource / eventType enums and V2 calls that now require a dimension parameter.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page does not match the official docs or your experience, email yimasynthetic@gmail.com with the page URL and the exact sentence you think is wrong so it can be corrected or clarified.