Skip to content

Add Federate and Govern Iceberg Tables Using Snowpark Connect quickstart#3410

Merged
sfc-gh-ridasafdar merged 4 commits into
Snowflake-Labs:masterfrom
sfc-gh-ncherukuri:add-iceberg-scos-assets
Jun 29, 2026
Merged

Add Federate and Govern Iceberg Tables Using Snowpark Connect quickstart#3410
sfc-gh-ridasafdar merged 4 commits into
Snowflake-Labs:masterfrom
sfc-gh-ncherukuri:add-iceberg-scos-assets

Conversation

@sfc-gh-ncherukuri

Copy link
Copy Markdown
Contributor

Summary

Adds new quickstart: Federate and Govern Iceberg Tables Using Snowpark Connect for Apache Spark

By the end of this quickstart, a business user opens Snowsight → Cortex Analyst, asks "Which orders are HIGH risk?" and gets a governed, AI-enriched answer drawn from Iceberg tables across two separate catalogs — with Horizon masking and row access policies enforced end-to-end, including on AI-generated columns.

What You Build

Step 1 (01, 02) — Snowflake-managed Iceberg tables with Horizon column masking + row access policies; Snowpark Connect governance demo

Step 2 (04, 05) — Databricks UC Iceberg tables federated via Catalog-Linked Database; Snowpark Connect queries with live role-based masking; federation setup fully idempotent (tested 2 consecutive runs)

Step 3 (06, 07) — Cortex AI enrichment pipeline: Snowpark Connect reads both catalogs, Cortex classifies risk + generates ops notes, writes to SF-managed Iceberg; Cortex Analyst semantic view for natural language querying with governance enforced per role

Governance contrast (03) — Snowpark Connect (governed) vs external Spark via Horizon IRC (raw Parquet, policies bypassed)

Assets (7 files, sequential 01–07)

File Purpose
01_sf_iceberg_catalog_setup.sql Snowflake setup: managed Iceberg, Horizon governance, credential vending, PAT
02_sf_iceberg_demo.ipynb Snowflake Workspace notebook: Snowpark Connect + Horizon governance
03_databricks_rw_sf_iceberg.py Databricks notebook: external engine reads/writes via Horizon IRC (governance contrast)
04_databricks_create_uc_tables.py Databricks notebook: create Delta + UniForm tables in Unity Catalog
05_databricks_federation_demo.ipynb Snowflake Workspace notebook: federation setup + SCOS governance (merged from two files, idempotent)
06_cortex_ai_pipeline.ipynb Snowflake Workspace notebook: Cortex AI enrichment pipeline
07_ai_pipeline.ipynb Snowflake Workspace notebook: Snowpark Connect + Cortex enrichment

Test plan

  • All assets validated end-to-end and re-runnable (idempotent)
  • 05 tested 2 consecutive full runs — zero errors
  • 06 tested 2 consecutive full runs — zero errors
  • Guide: outcome-first overview, no duplicate sections, file refs match assets (01–07, no gaps)
  • Governance Summary split: SF-managed vs externally-managed Iceberg tables
  • No credentials in any asset

.... Generated with Cortex Code

@github-actions

Copy link
Copy Markdown
Contributor

👋 Helpful Information

⚠️ Profanity Check Notice

Potentially inappropriate words were detected in the following files:

  • site/sfguides/src/federate-and-govern-iceberg-tables-using-snowpark-connect-for-apache-spark/federate-and-govern-iceberg-tables-using-snowpark-connect-for-apache-spark.md: databricks

Please review and consider revising if appropriate.

These are informational messages and will not block your PR from being merged.

@github-actions

Copy link
Copy Markdown
Contributor

🔗 Staging Preview Ready

Quickstart: federate-and-govern-iceberg-tables-using-snowpark-connect-for-apache-spark
Language: en

👉 Preview URL: https://publish-p57963-e462098.adobeaemcloud.com/en/developers/guides/federate-and-govern-iceberg-tables-using-snowpark-connect-for-apache-spark-7eba864e3e831543c7beabc54333034ab07e05db

Note: Images are uploaded asynchronously. If images are missing, wait a few minutes and refresh.


Generated by GitHub Actions

sfc-gh-ncherukuri and others added 3 commits June 29, 2026 10:42
…x location

.... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code)

Co-Authored-By: Cortex Code <noreply@snowflake.com>
.... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code)

Co-Authored-By: Cortex Code <noreply@snowflake.com>
…rg tables

Two separate tables with headers, Policy column added, key insight callout
explaining independence of Snowflake and Databricks UC governance.

.... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code)

Co-Authored-By: Cortex Code <noreply@snowflake.com>
@github-actions

Copy link
Copy Markdown
Contributor

👋 Helpful Information

⚠️ Profanity Check Notice

Potentially inappropriate words were detected in the following files:

  • site/sfguides/src/federate-and-govern-iceberg-tables-using-snowpark-connect-for-apache-spark/federate-and-govern-iceberg-tables-using-snowpark-connect-for-apache-spark.md: databricks

Please review and consider revising if appropriate.

These are informational messages and will not block your PR from being merged.

@github-actions

Copy link
Copy Markdown
Contributor

🔗 Staging Preview Ready

Quickstart: federate-and-govern-iceberg-tables-using-snowpark-connect-for-apache-spark
Language: en

👉 Preview URL: https://publish-p57963-e462098.adobeaemcloud.com/en/developers/guides/federate-and-govern-iceberg-tables-using-snowpark-connect-for-apache-spark-13aa488428cba8444a3e0b9802007626c0927a97

Note: Images are uploaded asynchronously. If images are missing, wait a few minutes and refresh.


Generated by GitHub Actions

@github-actions

Copy link
Copy Markdown
Contributor

👋 Helpful Information

⚠️ Profanity Check Notice

Potentially inappropriate words were detected in the following files:

  • site/sfguides/src/federate-and-govern-iceberg-tables-using-snowpark-connect-for-apache-spark/federate-and-govern-iceberg-tables-using-snowpark-connect-for-apache-spark.md: databricks

Please review and consider revising if appropriate.

These are informational messages and will not block your PR from being merged.

@github-actions

Copy link
Copy Markdown
Contributor

🔗 Staging Preview Ready

Quickstart: federate-and-govern-iceberg-tables-using-snowpark-connect-for-apache-spark
Language: en

👉 Preview URL: https://publish-p57963-e462098.adobeaemcloud.com/en/developers/guides/federate-and-govern-iceberg-tables-using-snowpark-connect-for-apache-spark-adb888a913d4a2d76b6d4f2dfd93317cd68ad690

Note: Images are uploaded asynchronously. If images are missing, wait a few minutes and refresh.


Generated by GitHub Actions

@sfc-gh-ridasafdar sfc-gh-ridasafdar merged commit 34e1c76 into Snowflake-Labs:master Jun 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants