Snowflake Integration GuideΒΆ

⚠️ Developer Preview / Untested Against Live Snowflake Accounts

This integration architecture is built on the Apache Iceberg Table Specification (V2/V3) and the Iceberg REST Catalog Specification (compatible with Snowflake Open Catalog / Apache Polaris).
While BenoDB’s underlying Iceberg engine, detached overlay catalog, and REST client are verified through automated integration tests, end-to-end certification against live, production Snowflake Enterprise accounts is currently in development and untested in this release.
Evaluate this workflow in a sandbox or non-production environment.


πŸ“– OverviewΒΆ

Enterprises that store analytical datasets in Snowflake can use BenoDB to layer reconstructible, high-performance secondary indexesβ€”vector ANN (HNSW), full-text BM25, and scalar bitmap indexesβ€”over their Snowflake data with zero data duplication and zero Snowflake compute credits.

BenoDB integrates with Snowflake via Snowflake Iceberg Tables residing in customer-managed object storage (Amazon S3, Google Cloud Storage, or Azure Blob Storage).

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Snowflake Data Cloud               β”‚
β”‚  β€’ Writes Parquet data via External Volume      β”‚
β”‚  β€’ Emits standard Iceberg metadata snapshots    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                        β”‚
                        β–Ό (writes Parquet + metadata)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚     Customer Object Storage (S3 / GCS / Azure)  β”‚          β”‚     BenoDB Overlay Storage        β”‚
β”‚             External Volume Prefix              β”‚          β”‚            (Separate Bucket)            β”‚
β”‚              (Strictly Read-Only)               β”‚          β”‚           (Writable Sidecars)           β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€          β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β€’ metadata/v1.metadata.json, snap-*.avro        β”‚          β”‚ β€’ detached_catalog.json (lineage/sync)  β”‚
β”‚ β€’ data/00001.parquet                            │◀────────── β€’ manifest.json (PK & index definitions)β”‚
β”‚ β€’ data/00002.parquet                            β”‚          β”‚ β€’ data/00001.bdb_idx (HNSW / BM25)     β”‚
β”‚ (Managed & compacted by Snowflake)              β”‚          β”‚ β€’ data/00002.bdb_idx (HNSW / BM25)     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ”„ Two Integration ApproachesΒΆ


Approach B: Via Snowflake Open Catalog (Polaris / Iceberg REST API)ΒΆ

If your organization requires table resolution through the Iceberg REST Catalog protocol rather than direct object storage URLs:

Snowflake supports the Iceberg REST Catalog standard via Snowflake Open Catalog (Apache Polaris).

import benodb as bdb

# Connect via Iceberg REST Catalog endpoint
catalog = bdb.create_catalog("rest", {
    "url": "https://<account_locator>.snowflakecomputing.com/polaris/api/catalog",
    "prefix": "MY_DATABASE",
})

table = catalog.load_table("MY_SCHEMA", "CUSTOMER_INTERACTIONS")

The embedded Python REST wrapper takes url and an optional prefix; OAuth2 client credentials are configured on the engine/search server through benostream.toml or the BDB_SEARCH_CATALOG_* environment variables.


❓ What About Proprietary Snowflake Internal Tables?ΒΆ

Standard Snowflake tables (not created with CREATE ICEBERG TABLE) reside in Snowflake’s proprietary, encrypted micro-partition format in internal stages. No third-party engine can directly scan these files from disk.

Solution: Zero-ETL Iceberg Projection in SnowflakeΒΆ

Enterprises can project proprietary Snowflake tables into Iceberg format using a Snowflake CTAS or Dynamic Table:

CREATE ICEBERG TABLE customer_interactions_iceberg
  EXTERNAL_VOLUME = 'my_s3_ext_vol'
  CATALOG = 'SNOWFLAKE'
  BASE_LOCATION = 'customer_interactions/'
  AS SELECT * FROM proprietary_interactions;

Once written to the external volume, BenoDB immediately mounts and indexes the data without ongoing migration pipelines.


πŸ”’ Enterprise Security & InvariantsΒΆ

  1. Zero Snowflake Compute Costs: All queries, vector ANN searches, BM25 text scans, and index builds run on BenoDB compute. Zero Snowflake virtual warehouse credits are billed.

  2. Strict Read-Only Access: BenoDB requires only s3:GetObject on the Snowflake external volume prefix. It cannot alter, delete, or rewrite Snowflake data files.

  3. Reconstructible State: All index sidecars live in the isolated overlay_storage_uri. If the overlay bucket is lost, all indexes can be rebuilt from the authoritative Iceberg Parquet files.