forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Minor fixes to incremental normalization and nesting (airbytehq#7669)
- Loading branch information
1 parent
4edff89
commit 6558a5f
Showing
28 changed files
with
252 additions
and
193 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
20 changes: 20 additions & 0 deletions
20
...ed/airbyte_incremental/test_normalization/nested_stream_with_c___long_names_partition.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,20 @@ | ||
{{ config( | ||
indexes = [{'columns':['_airbyte_emitted_at'],'type':'hash'}], | ||
unique_key = '_airbyte_ab_id', | ||
schema = "test_normalization", | ||
tags = [ "nested" ] | ||
) }} | ||
-- Final base SQL model | ||
select | ||
_airbyte_nested_stre__nto_long_names_hashid, | ||
double_array_data, | ||
{{ adapter.quote('DATA') }}, | ||
_airbyte_ab_id, | ||
_airbyte_emitted_at, | ||
{{ current_timestamp() }} as _airbyte_normalized_at, | ||
_airbyte_partition_hashid | ||
from {{ ref('nested_stream_with_c___long_names_partition_ab3') }} | ||
-- partition at nested_stream_with_complex_columns_resulting_into_long_names/partition from {{ ref('nested_stream_with_c__lting_into_long_names_scd') }} | ||
where 1 = 1 | ||
{{ incremental_clause('_airbyte_emitted_at') }} | ||
|
18 changes: 18 additions & 0 deletions
18
...ed/airbyte_incremental/test_normalization/nested_stream_with_c___names_partition_data.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,18 @@ | ||
{{ config( | ||
indexes = [{'columns':['_airbyte_emitted_at'],'type':'hash'}], | ||
schema = "test_normalization", | ||
tags = [ "nested" ] | ||
) }} | ||
-- Final base SQL model | ||
select | ||
_airbyte_partition_hashid, | ||
currency, | ||
_airbyte_ab_id, | ||
_airbyte_emitted_at, | ||
{{ current_timestamp() }} as _airbyte_normalized_at, | ||
_airbyte_data_hashid | ||
from {{ ref('nested_stream_with_c___names_partition_data_ab3') }} | ||
-- DATA at nested_stream_with_complex_columns_resulting_into_long_names/partition/DATA from {{ ref('nested_stream_with_c___long_names_partition') }} | ||
where 1 = 1 | ||
{{ incremental_clause('_airbyte_emitted_at') }} | ||
|
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
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 |
---|---|---|
|
@@ -31,6 +31,9 @@ | |
}, | ||
"USD": { | ||
"type": "number" | ||
}, | ||
"column`_'with\"_quotes": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,9 @@ | |
}, | ||
"USD": { | ||
"type": "number" | ||
}, | ||
"column`_'with\"_quotes": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
|
Oops, something went wrong.