Quarry SQL

Workspace Quickstart

Attach your cloud Iceberg or Snowflake catalog, query local Parquet files in DuckDB-WASM, and lint SQL notebooks automatically in CI.

01 · CONNECT

Attach Iceberg & Local Parquet

Mount remote object-store catalogs alongside local browser files in one session.

ATTACH 'https://catalog.internal.acme.io/iceberg' AS prod (
  TYPE ICEBERG,
  AUTH_MODE 'OAUTH_PASSTHROUGH'
);

-- Query remote Iceberg partition + local drag-and-drop CSV together
SELECT p.region, count(*) AS orders, sum(p.net_usd) AS revenue
FROM prod.finance.orders_2026 p
JOIN read_csv('local://q4_targets.csv') t USING (region)
WHERE p.order_date >= DATE '2026-10-01'
GROUP BY 1
ORDER BY revenue DESC;

02 · POLICY

Configure Automatic WASM Offload

Route sub-5 GB exploratory queries to local browser DuckDB before touching cloud credits.

# quarry.config.yaml
execution:
  local_wasm_threshold_gb: 5.0
  cache_ttl_minutes: 45
  warn_cloud_scan_gb: 250
catalogs:
  - name: snowflake_prod
    mode: arrow_flight
    pushdown_filters: true

03 · GIT SYNC

Validate Worksheets in CI

Type-check SQL cells against your live catalog schema on every pull request.

npx @quarrysql/cli check ./worksheets/**/*.sql \
  --catalog prod --dry-run --fail-on-full-scan

Model your team's local WASM offload savings before rollout.

Open Seat Estimator