Databricks - Data Engineer Professional Study Guide

    4: Data Sharing and Federation

    This chapter covers the data-distribution surface of the Databricks Data Intelligence Platform: Delta Sharing for cross-deployment and external-recipient distribution, Lakehouse Federation for query-time access to foreign source systems, and the live-data delivery mechanics that let non-Databricks compute platforms consume Lakehouse tables without copy. Production-grade configuration, governance, and audit trails are the spine of every example.

    Learning Objectives

    By the end of this chapter, you will be able to:

    • Demonstrate delta sharing securely between Databricks deployments using Databricks to Databricks Sharing (D2D) or to external platforms using the open sharing protocol (D2O).
    • Configure Lakehouse Federation with proper governance across the supported source Systems.
    • Use Delta Share to share live data from Lakehouse to any computing platform.

    Executive Summary

    • Delta Sharing is the protocol; D2D and D2O are the two configurations of the same SHARE, RECIPIENT, and GRANT triad inside Unity Catalog, with D2D wiring the recipient straight into a peer Databricks metastore and D2O issuing a token-secured activation file consumed by any compliant client.
    • Lakehouse Federation registers foreign source systems (Snowflake, BigQuery, Redshift, PostgreSQL, MySQL, SQL Server, Azure Synapse, Salesforce Data Cloud, and other supported targets) as foreign catalogs in Unity Catalog without copying data, with Unity Catalog grants governing access and the optimizer pushing predicates and projections back to the foreign engine wherever possible.
    • Open-recipient delivery to pandas, non-Databricks Spark, Power BI, Tableau, and custom applications runs over the open Delta Sharing protocol, with the delta-sharing client library and a profile file giving consumers the same point-in-time view that the provider sees on a Delta table at the moment of read.
    • Change Data Feed extended over Delta Sharing turns one-shot snapshot delivery into incremental change capture, letting external consumers stream row-level updates without provider-side ETL or recipient-side reconciliation logic.

    Assumptions

    • The reader has Unity Catalog enabled on both provider and recipient metastores, with account admin privileges available to issue CREATE SHARE and CREATE RECIPIENT operations.
    • Naming conventions use <catalog>.<schema>.<table> everywhere; the provider catalog silver_finance and the share finance_share recur as worked examples across the chapter.
    • Cross-references back to prior chapters use the exact terms from Chapter 1, 2, and 3 without re-defining them.

    Sections in this chapter

    1. Free
    2. Free with account
    3. Free with account
    4. Free with account