How dasenf1860/fabricdatabricksunitycatalog works
Project Type and Purpose
• The project is essentially a data engineering integration solution. It is not a full-scale application but rather a guide with accompanying notebooks (UnityCatalogAPI.ipynb and UnityCatalogExternal.ipynb) that demonstrate how to interact with the Databricks Unity Catalog and Microsoft Fabric.
• Its purpose is to show how to set up table shortcuts so that Fabric Lakehouses can reference tables maintained in Databricks Unity Catalog without data duplication.
• The integration uses API calls (and can be extended via CLI/SDK) to convert storage paths between the systems and to synchronize metadata across platforms.
File Structure
• Top-level files include: LICENSE, README.md, two IPython notebooks (UnityCatalogAPI.ipynb, UnityCatalogExternal.ipynb), and a media directory containing images.
• The notebooks likely contain code examples for making API calls and processing path conversions which are core to the integration.
• The simple file structure indicates that the project focuses on the integration process rather than a multi-component application system.
a. Databricks Environment:
• Unity Catalog
• Catalog (e.g., “healthcare”)
• Schemas (e.g., “clinicaltrialssilver”)
• Tables (subject, adverse_events, measurements)
• API/CLI/SDK Usage:
• A component that represents the code (as demonstrated in the notebooks) which programmatically retrieves table metadata and performs the path conversion.
b. Microsoft Fabric Environment:
• Fabric Lakehouse
• Displays the table shortcut that mirrors a Databricks Unity Catalog table.
• Uses OneLake-Shortcuts so that even though the data physically resides in ADLS, it is referenced in Fabric.
c. Underlying Storage:
• Azure Data Lake Storage Gen2 (ADLS Gen2)
• The underlying storage where the delta tables reside.
• Both Unity Catalog and Fabric point to the same delta files on ADLS.
d. Messaging and Data Flow:
• API Layer:
• Data flows from Databricks metadata (table details and file paths) to Fabric, where the API or code layer converts and sets up the appropriate shortcut links.
• Integration Flow:
• From external API calls/CLI/SDK (as explained in the notebooks) to Fabric’s Lakehouse table creation process.
Relationships and Interactions
• The process of querying Unity Catalog tables and extracting table detail (including ADLS path).
• The conversion step where the abfss path is transformed to an https path suitable for Fabric.
• The creation of a table shortcut in Fabric that points back to the Unity Catalog source.
• That both metadata definitions (in Unity Catalog and in Fabric) ultimately reference the same underlying storage objects.
• Interconnectivity with a bidirectional note (if future enhancements allow sync in both directions) or simply one-way data flow (from Databricks to Fabric, as currently described).
Highlighting Architectural Patterns or Design Principles
• Stress “seamless integration” with minimal data movement — only metadata and path transformations take place.
• Pattern of using a thin intermediary layer (the API/CLI/SDK component) to connect two distinct data platforms.
• Via an intermediate block labeled “Integration Code (API/CLI/SDK)” that handles the process of extracting table details and converting paths.
• Separation of responsibilities and the minimal-effort, non-replicative data access characteristic of the design.