Storage

Creating Analytics Buckets


Analytics Buckets use Apache Iceberg, an open-table format for managing large analytical datasets. You can interact with them using tools such as PyIceberg, Apache Spark or any client which supports the standard Iceberg REST Catalog API.

You can create an Analytics Bucket using either the Supabase SDK or the Supabase Dashboard.

Using the Supabase SDK

1
2
3
4
5
6
7
import { createClient } from '@supabase/supabase-js'const supabase = createClient('https://your-project.supabase.co', 'your-service-key')supabase.storage.createBucket('my-analytics-bucket', { type: 'ANALYTICS',})

Using the Supabase Dashboard

  1. Navigate to the Storage section in the Supabase Dashboard.
  2. Click on "Create Bucket".
  3. Enter a name for your bucket (e.g., my-analytics-bucket).
  4. Select "Analytics Bucket" as the bucket type.
Storage schema design

Now, that you have created your Analytics Bucket, you can start connecting to it with Iceberg clients like PyIceberg or Apache Spark.