Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Test for the Delta file format as well #8

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions features/002_rematerialize_models.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ Feature: Test re-materializing models as different types
version: 1.0
"""

Scenario Outline: Materialize as <first_materialization> first, then <second_materialization>
Scenario Outline: Materialize as <first_materialization> (<first_file_format>) first, then <second_materialization> (<second_file_format>)

Given a model "relation" with:
"""
{{
config(
materialized='<first_materialization>',
partition_by='id',
file_format='parquet'
file_format='<first_file_format>'
)
}}
select * from {{ ref('seed') }}
Expand Down Expand Up @@ -58,7 +58,7 @@ Feature: Test re-materializing models as different types
config(
materialized='<second_materialization>',
partition_by='id',
file_format='parquet'
file_format='<second_file_format>'
)
}}

Expand All @@ -68,13 +68,18 @@ Feature: Test re-materializing models as different types
And I successfully run "dbt test"

Examples:
| first_materialization | second_materialization |
| view | view |
| view | table |
| view | incremental |
| table | view |
| table | table |
| table | incremental |
| incremental | view |
| incremental | table |
| incremental | incremental |
| first_materialization | second_materialization | first_file_format | second_file_format |
| view | view | view | view |
| view | table | view | parquet |
| view | incremental | view | parquet |
| table | view | parquet | view |
| table | view | delta | view |
| table | table | parquet | parquet |
| table | table | parquet | delta |
| table | table | delta | parquet |
| table | table | delta | delta |
| table | incremental | parquet | parquet |
| table | incremental | parquet | parquet |
| incremental | view | parquet | view |
| incremental | table | parquet | parquet |
| incremental | incremental | parquet | parquet |
File renamed without changes.