-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2550 from bodschut/bodschut/bq_nested_column_desc…
…riptions Add functionality to persist descriptions to nested columns in bigquery
- Loading branch information
Showing
9 changed files
with
166 additions
and
17 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 |
---|---|---|
|
@@ -10,6 +10,6 @@ select | |
3 as field_3, | ||
|
||
struct( | ||
4 as field_4, | ||
5 as field_5 | ||
5 as field_5, | ||
6 as field_6 | ||
) as nested_field |
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
19 changes: 19 additions & 0 deletions
19
test/integration/060_persist_docs_tests/models-bigquery-nested/schema.yml
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,19 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: table_model_nested | ||
columns: | ||
- name: level_1 | ||
description: level_1 column description | ||
- name: level_1.level_2 | ||
description: level_2 column description | ||
- name: level_1.level_2.level_3_a | ||
description: level_3 column description | ||
- name: view_model_nested | ||
columns: | ||
- name: level_1 | ||
description: level_1 column description | ||
- name: level_1.level_2 | ||
description: level_2 column description | ||
- name: level_1.level_2.level_3_a | ||
description: level_3 column description |
8 changes: 8 additions & 0 deletions
8
test/integration/060_persist_docs_tests/models-bigquery-nested/table_model_nested.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,8 @@ | ||
{{ config(materialized='table') }} | ||
SELECT | ||
STRUCT( | ||
STRUCT( | ||
1 AS level_3_a, | ||
2 AS level_3_b | ||
) AS level_2 | ||
) AS level_1 |
8 changes: 8 additions & 0 deletions
8
test/integration/060_persist_docs_tests/models-bigquery-nested/view_model_nested.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,8 @@ | ||
{{ config(materialized='view') }} | ||
SELECT | ||
STRUCT( | ||
STRUCT( | ||
1 AS level_3_a, | ||
2 AS level_3_b | ||
) AS level_2 | ||
) AS level_1 |
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