Introduction to Databricks Lakehouse
Gang Wang
Senior Data Scientist
$$

$$
$$

$$
-- Create a connection
CREATE CONNECTION partner_pg
TYPE postgresql
OPTIONS (
host 'db.partner.com',
port '5432',
user 'reader',
password secret('scope', 'key')
);
$$
-- Create a foreign catalog
CREATE FOREIGN CATALOG partner_db
USING CONNECTION partner_pg;
-- Query the external table
SELECT *
FROM partner_db.public.orders
LIMIT 10;
$$
| Federate | Ingest | |
|---|---|---|
| Access | Real-time | Batch copy |
| Query volume | Low | High |
| Latency | Source-dependent | Low |
| Compliance | No copies needed | Data moves |
| Transforms | Limited | Full medallion |
$$
$$
$$

$$
Introduction to Databricks Lakehouse