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 | |
|---|---|---|
| การเข้าถึง | Real-time | คัดลอกแบบ Batch |
| ปริมาณคิวรี | ต่ำ | สูง |
| Latency | ขึ้นกับต้นทาง | ต่ำ |
| Compliance | ไม่ต้องสร้างสำเนา | ข้อมูลถูกย้าย |
| การแปลงข้อมูล | จำกัด | Medallion เต็มรูปแบบ |
$$
$$
$$

$$
Introduction to Databricks Lakehouse