Skip to main content
Reference vendor/cloudflare 1 min read

patterns

Basin Catalog Patterns

Choose the engine based on the project’s existing runtime and workload, then retrieve its current connection example.

NeedStarting point
Python catalog operations and ingestion without a Spark deploymentPyIceberg
Existing Spark ETL and distributed table processingPySpark
Connect an existing SQL engineEngine configuration guides
Query through Cloudflare’s serverless SQL serviceBasin SQL
Stream events into tablesBasin Pipelines patterns

Use the discovered Catalog URI and Warehouse name from configuration. Match dependencies to the installed engine and the current guide instead of adopting a universal pinned Spark/Iceberg combination.

Plan ingestion, query, and maintenance responsibilities together. Prefer automatic table maintenance when it meets the workload; align retention with time-travel needs before enabling expiration. For engine-specific partitioning, schema evolution, or manual procedures, consult that engine’s linked upstream documentation and verify behavior on representative data.

When multiple writers share a table, design recovery around the actual failed operation and the engine’s commit semantics. Reproduce conflicts and ensure retries do not duplicate application work. See API selection and troubleshooting.