Creating Analytics Buckets
Set up your first analytics bucket using the SDK or dashboard.
This feature is in Private Alpha. API stability and backward compatibility are not guaranteed at this stage. Request access through this form.
Analytics buckets use Apache Iceberg, an open-table format for efficient management of large analytical datasets. You can interact with analytics buckets using tools such as PyIceberg, Apache Spark, or any client supporting the Iceberg REST Catalog API.
About replication
Analytics Buckets are still available, but managed replication into Analytics Buckets through Supabase ETL is no longer supported. If you need managed replication today, use Database Replication with BigQuery. If you want to use Analytics Buckets, bring your own ingestion pipeline.
Creating an Analytics bucket#
You can create an analytics bucket using either the Supabase SDK or the Supabase Dashboard.
Using the Supabase SDK#
1import { } from '@supabase/supabase-js'23const = ('https://your-project.supabase.co', 'your-service-key')45const { , } = await ...('analytics-data')67if () {8 .('Failed to create analytics bucket:', )9} else {10 .('Analytics bucket created:', )11}Using the Supabase Dashboard#
- Navigate to the Storage section in the Supabase Dashboard.
- Click Create Bucket.
- Enter a name for your bucket (e.g.,
my-analytics-bucket). - Select Analytics Bucket as the bucket type.
- Click Create.
Next steps#
Once you've created your analytics bucket, you can:
- Connect with Iceberg clients like PyIceberg or Apache Spark
- Query data with Postgres using the Iceberg Foreign Data Wrapper