27 lines
896 B
YAML
27 lines
896 B
YAML
# dbt project for the digital-core domain's experience data products.
|
|
#
|
|
# Runs against the lakehouse as role `dbt`, whose default table access method is
|
|
# ducklake, so every model table is DuckLake (Parquet in MinIO), readable through
|
|
# Trino as lake.<schema>.<table>. Give each experience product its own schema:
|
|
# models/<product_schema>/*.sql with +schema: <product_schema>
|
|
#
|
|
# By hand: uv run data-domain dbt build
|
|
# Scheduled: schedules.yml, registered with platform/domain-integration.sh register mgmt
|
|
|
|
name: digital_core
|
|
version: "1.0.0"
|
|
profile: domain
|
|
|
|
model-paths: ["models"]
|
|
macro-paths: ["macros"]
|
|
|
|
models:
|
|
digital_core:
|
|
+materialized: table
|
|
# Trino reads the lake as `trino`, a member of ducklake_reader.
|
|
+grants:
|
|
select: ["ducklake_reader"]
|
|
|
|
on-run-end:
|
|
- "{% for schema in schemas %}grant usage on schema {{ schema }} to ducklake_reader;{% endfor %}"
|