Bring your own warehouse

Loxtep supports two warehouse patterns:

  1. Read-only bind — register an existing Snowflake or Databricks table (bind_warehouse_table)
  2. Warehouse-primary ingestion — ingest via rStreams and land rows in your warehouse (configure_warehouse_sink)

Binding registers metadata, schema, and quality hooks. Warehouse-primary sinks skip Loxtep Iceberg materialization on deploy.

Read-only bind

  • Discovers objects through a connector (list_warehouse_objects)
  • Registers a bound product (bind_warehouse_table / Studio Bind UI)
  • Serves reads via Warehouse-SQL and quality pushdown

Warehouse-primary ingestion

  • Configure target table + sync mode (append / upsert / replace)
  • warehouse-writer bot pushes queue batches to Snowflake (MERGE) or Databricks (Delta MERGE / INSERT)
  • Databricks sink writes are MERGE on the primary key when upsert is configured. Tables are created only when auto-create is on. A missing USE CATALOG, CREATE TABLE, or MODIFY privilege is reported as a permission error
  • Optional auto_create_table creates the UC/Snowflake table from the first batch when missing
  • Sync health on the data product (last write, checkpoint, rows per run)
  • For Databricks, database is the Unity Catalog catalog name

What is not implemented

  • Dual-write Iceberg + warehouse for the same product

Related

  • Spec: .kiro/specs/warehouse-ingestion-sync/
  • MCP: loxtep_build → list_warehouse_objects, bind_warehouse_table, configure_warehouse_sink