-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚨 Snowflake produces permanent tables 🚨 #9063
Merged
Merged
Changes from 31 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
c6ae621
add normalization-clickhouse docker build step
jzcruiser b88225e
Merge branch 'patch-4' of github.com:jzcruiser/airbyte into marcos/te…
marcosmarxm cc499c2
bump normalization version
marcosmarxm a2517a3
small changes gradle
marcosmarxm 4a51799
Merge branch 'master' into marcos/test-pr-9029
marcosmarxm a57495c
fix settings gradle
marcosmarxm c56ef54
fix eof file
marcosmarxm f8ccfd6
correct clickhouse normalization
marcosmarxm f24ea4b
Merge branch 'master' into marcos/test-pr-9029
edgao a6e4c31
Refactor jinja template for scd (#9278)
ChristopheDuong 4f9f8ae
merge chris code and regenerate sql files
marcosmarxm 621ae20
add snowflake as copy of standard
edgao d0ca72a
snowflake creates permanent tables
edgao 3aef7c9
dockerfile respects updated dbt_project.yml
edgao 05b0b0f
add to docker-compose
edgao 5a9bacd
hook up custom normalization image
edgao f7c2d9b
add to test
edgao 8c96d2d
more fixes?
edgao a0e7399
build.gradle; some sort of test?
edgao c0a755b
add to integration test
edgao 4f92a66
case-sensitive patterns
edgao be09211
handle m1 error
edgao 93c0b15
more snowflake-specific handling
edgao 0bb000c
ran tests
edgao 7e73552
docs + version bumps
edgao 2f7dc29
inject :dev normalization version during test
edgao b31f5ec
try hardcoding :dev image
edgao 405d038
add destination variable
edgao 0c55399
regenerate test output
edgao b8db991
typo
edgao d8abb0c
exclude snowflake dbt template from spotless
edgao baf0db2
clarify documentation
edgao fe10d82
Merge branch 'master' into edgao/snowflake_permanent_tables
edgao 01bcb67
regenerate normalization_test_output
edgao ab662e3
delete unused variable
edgao 03e38dc
minor bump actually
edgao dffe792
bump definition
edgao 663b498
Merge branch 'master' into edgao/snowflake_permanent_tables
edgao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
67 changes: 67 additions & 0 deletions
67
airbyte-integrations/bases/base-normalization/dbt-project-template-snowflake/dbt_project.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,67 @@ | ||
# This file is necessary to install dbt-utils with dbt deps | ||
# the content will be overwritten by the transform function | ||
|
||
# Name your package! Package names should contain only lowercase characters | ||
# and underscores. A good package name should reflect your organization's | ||
# name or the intended use of these models | ||
name: "airbyte_utils" | ||
version: "1.0" | ||
config-version: 2 | ||
|
||
# This setting configures which "profile" dbt uses for this project. Profiles contain | ||
# database connection information, and should be configured in the ~/.dbt/profiles.yml file | ||
profile: "normalize" | ||
|
||
# These configurations specify where dbt should look for different types of files. | ||
# The `source-paths` config, for example, states that source models can be found | ||
# in the "models/" directory. You probably won't need to change these! | ||
source-paths: ["models"] | ||
docs-paths: ["docs"] | ||
analysis-paths: ["analysis"] | ||
test-paths: ["tests"] | ||
data-paths: ["data"] | ||
macro-paths: ["macros"] | ||
|
||
target-path: "../build" # directory which will store compiled SQL files | ||
log-path: "../logs" # directory which will store DBT logs | ||
modules-path: "/tmp/dbt_modules" # directory which will store external DBT dependencies | ||
|
||
clean-targets: # directories to be removed by `dbt clean` | ||
- "build" | ||
- "dbt_modules" | ||
|
||
quoting: | ||
database: true | ||
# Temporarily disabling the behavior of the ExtendedNameTransformer on table/schema names, see (issue #1785) | ||
# all schemas should be unquoted | ||
schema: false | ||
identifier: true | ||
|
||
# You can define configurations for models in the `source-paths` directory here. | ||
# Using these configurations, you can enable or disable models, change how they | ||
# are materialized, and more! | ||
models: | ||
+transient: false | ||
airbyte_utils: | ||
+materialized: table | ||
generated: | ||
airbyte_ctes: | ||
+tags: airbyte_internal_cte | ||
+materialized: ephemeral | ||
airbyte_incremental: | ||
+tags: incremental_tables | ||
+materialized: incremental | ||
+on_schema_change: sync_all_columns | ||
airbyte_tables: | ||
+tags: normalized_tables | ||
+materialized: table | ||
airbyte_views: | ||
+tags: airbyte_internal_views | ||
+materialized: view | ||
|
||
dispatch: | ||
- macro_namespace: dbt_utils | ||
search_order: ["airbyte_utils", "dbt_utils"] | ||
|
||
vars: | ||
destination: "snowflake" | ||
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to supply env vars at runtime for dbt?
when normalization runs to generate the dbt project/files, we already know we are doing it for a certain destination, isn't that enough?