Giới thiệu về dbt
Mike Metzger
Data Engineer
{{ ... }} biểu thị phép thay thế trong mẫuref: Truy cập model theo tênconfig: Truy cập thiết lập cấu hìnhdocs: Truy cập thông tin tài liệuSELECT
COALESCE(start_date, '2025-01-01') as start_date,
COALESCE(update_date, '2025-01-01') as update_date,
COALESCE(end_date, '2025-01-01') as end_date
FROM Events
SELECT
{% for column in ['start_date', 'update_date', 'end_date'] %}
COALESCE({{column}}, '2025-01-01') as {{column}}
{% endfor %}
FROM Events
Giới thiệu về dbt