-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BigQuery copy materialization enhancement (#3606)
* Change BigQuery copy materialization Change BigQuery copy materialization macros to copy data from several sources into single target * Change BigQuery copy materialization Change BigQuery connections.py to copy data from several sources into single target via copy materialization * Change BigQuery copy materialization Test to check default value of `copy_materialization` if it is absent in config * Change BigQuery copy materialization Update changelog * Update changelog * Var renaming + test addition * Changelog updated * Changelog updated * Fix test for copy table * Update test_bigquery_adapter.py * Update test_bigquery_adapter.py * Update impl.py * Update connections.py * Update test_bigquery_adapter.py * Update test_bigquery_adapter.py * Update connections.py * Align calls from mock and from adapter * Split long code ilnes * Create additional.sql * Update copy_as_several_tables.sql * Update schema.yml * Update copy.sql * Update connections.py * Update test_bigquery_copy_models.py * Add contributor
- Loading branch information
Showing
9 changed files
with
59 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
select 2 as id |
1 change: 1 addition & 0 deletions
1
test/integration/022_bigquery_test/copy-models/copy_as_several_tables.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
select * from {{ ref('original') }}, {{ source('test_copy_several_tables', 'additional') }} |
3 changes: 1 addition & 2 deletions
3
test/integration/022_bigquery_test/copy-models/copy_as_table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
{{ config(copy_materialization='table') }} | ||
{{ ref('original') }} | ||
{{ ref('original') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
sources: | ||
- name: test_copy_several_tables | ||
schema: "{{ target.schema }}" | ||
tables: | ||
- name: additional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters