Bridge: Databricks Unity Catalog → ODGS Runtime Enforcement Schemas
Project description
ODGS Databricks Bridge
Transform your Databricks Unity Catalog into active ODGS runtime enforcement schemas.
Unity Catalog describes your data. ODGS enforces it.
What It Does
The ODGS Databricks Bridge connects to your Databricks workspace and transforms Unity Catalog table/column metadata into ODGS-compliant JSON schemas that the Universal Interceptor (ODGS Core Engine) can enforce at runtime.
Unity Catalog REST API ODGS
┌──────────────┐ Bridge ┌──────────────┐
│ Catalogs │ ──────────────→ │ JSON Schema │
│ Schemas │ reads tables, │ + Interceptor│
│ Tables │ outputs ODGS │ = Enforcement│
│ Columns │ └──────────────┘
└──────────────┘
What Gets Generated
| Input | Output Type | ODGS Artifact |
|---|---|---|
| Table metadata | metrics |
Metric definitions with full column schemas |
| Non-nullable columns | rules |
NOT_NULL enforcement rules |
| Column data types | rules |
TYPE_CHECK validation rules |
Install
pip install odgs-databricks-bridge
Quick Start
Python API
from odgs_databricks import DatabricksBridge
bridge = DatabricksBridge(
workspace_url="https://adb-1234567890.azuredatabricks.net",
token="dapi...",
organization="acme_corp",
)
# Sync all tables from a catalog → ODGS metric definitions
bridge.sync(
catalog="production",
output_dir="./schemas/custom/",
output_type="metrics",
)
# Sync column constraints → ODGS enforcement rules
bridge.sync(
catalog="production",
schema_filter="finance",
output_dir="./schemas/custom/",
output_type="rules",
severity="HARD_STOP",
)
CLI
# Using environment variables (standard Databricks SDK convention)
export DATABRICKS_HOST=https://adb-1234567890.azuredatabricks.net
export DATABRICKS_TOKEN=dapi...
odgs-databricks sync \
--org acme_corp \
--catalog production \
--schema finance \
--type rules \
--severity HARD_STOP \
--output ./schemas/custom/
Output
{
"$schema": "https://metricprovenance.com/schemas/odgs/v4",
"metadata": {
"source": "databricks",
"organization": "acme_corp",
"tables_processed": 12,
"items_generated": 47
},
"items": [
{
"rule_urn": "urn:odgs:custom:acme_corp:rule:revenue_amount_not_null",
"name": "revenue.amount NOT NULL",
"severity": "HARD_STOP",
"constraint_type": "NOT_NULL",
"target_table": "production.finance.revenue",
"content_hash": "a1b2c3..."
}
]
}
🏢 Enterprise & Public Sector: EU AI Act Compliance This open-source bridge connects your physical data infrastructure to the ODGS validation engine. However, if you are operating a High-Risk AI System and require strict liability indemnification under the EU AI Act (Articles 10 & 12), you need cryptographic provenance.
Metric Provenance offers the commercial Enterprise Infrastructure for ODGS:
Certified Sovereign Packs: Pre-compiled, cryptographically signed Ed25519 rule bundles for DORA, EU AI Act, and Basel Committee compliance.
The S-Cert Sovereign Registry: An air-gapped, on-premise Enterprise Certificate Authority that natively ingests ODGS telemetry to mint immutable, JWS-sealed audit logs of every AI decision.
Institutional Ontologies: Native support for TNO FLINT and European Data Space schemas.
👉 Discover the Sovereign CA Enterprise Node | View the Telemetry
🆕 v4.1.0: Bi-Directional Write-Backs
The ODGS Databricks bridge now supports Bi-Directional Sync (Plane 4). It can parse your secure sovereign_audit.log offline and push compliance results back directly into your Unity Catalog table comments.
This creates a seamless feedback loop for Data Stewards without compromising the Air-Gapped nature of the core ODGS protocol.
odgs-databricks write-back \
--log-path ./sovereign_audit.log \
--url https://adb-1234567890.azuredatabricks.net \
--token dapi...
Authentication
| Method | CLI Flag | Environment Variable |
|---|---|---|
| Personal Access Token | --token |
DATABRICKS_TOKEN |
| Workspace URL | --url |
DATABRICKS_HOST |
Requirements
- Python ≥ 3.9
odgs≥ 4.0.0 (core protocol)- Databricks workspace with Unity Catalog enabled
Related
- ODGS Protocol — The core enforcement engine
- ODGS Collibra Bridge — Collibra integration
- ODGS Snowflake Bridge — Snowflake integration (planned)
License
Apache 2.0 — Metric Provenance | The Hague, NL 🇳🇱
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odgs_databricks_bridge-0.3.0.tar.gz.
File metadata
- Download URL: odgs_databricks_bridge-0.3.0.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72112bf450d3bfcd5f54dcf4612554e2d8097b7399f6ec1dbe69d7fd20e18709
|
|
| MD5 |
9f15feddbc0c9d480781399c1b6b46a7
|
|
| BLAKE2b-256 |
240b59d44147b08d86c2e3d375a4ce0820ff80fb4690271a51fdbf4090d708ea
|
File details
Details for the file odgs_databricks_bridge-0.3.0-py3-none-any.whl.
File metadata
- Download URL: odgs_databricks_bridge-0.3.0-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a95388cc8f2e0f765fda5277de8e16a6a74ee93b0d4ce522531f2b689ea1ab9
|
|
| MD5 |
9345c567ba773578331743b018706a50
|
|
| BLAKE2b-256 |
306802743d7255135ecee23b567c25e2b82d76cdad92d0d6a5688e8cd4aa3cc0
|