-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathtrino.dbtspec
30 lines (30 loc) · 953 Bytes
/
trino.dbtspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
target:
type: trino
threads: 4
host: "{{ env_var('DBT_TEST_TRINO_HOST', 'localhost') }}"
port: 8080
user: trino
database: memory
schema: default
projects:
# incremental models aren't allowed
- overrides: base
paths:
models/swappable.sql: |
{% set materialized_var = "table" %}
{% if var("materialized_var", "table") == "view" %}
{% set materialized_var = "view" %}
{% endif %}
{{ config(materialized=materialized_var) }}
select * from {{ source('raw', 'seed') }}
sequences:
test_dbt_empty: empty
test_dbt_base: base
test_dbt_ephemeral: ephemeral
test_dbt_incremental: incremental
# no snapshots
# test_dbt_snapshot_strategy_timestamp: snapshot_strategy_timestamp
# test_dbt_snapshot_strategy_check_cols: snapshot_strategy_check_cols
test_dbt_data_test: data_test
test_dbt_schema_test: schema_test
test_dbt_ephemeral_data_tests: data_test_ephemeral_models