-
Notifications
You must be signed in to change notification settings - Fork 1
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 #76 from keboola/adamvyborny-DBT-24-shared-buckets
Support for shared buckets and removed testing of compounded PKs
- Loading branch information
Showing
13 changed files
with
105 additions
and
60 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
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
2 changes: 1 addition & 1 deletion
2
tests/functionalSyncActions/run-sync-action-dbt-compile/expected-stdout
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 +1 @@ | ||
{"compiled":{"stg_model.sql":"with source as (\n \n select * from \"KEBOOLA_9457\".\"in.c-test-bucket\".\"test\"\n \n ),\n \n renamed as (\n \n select\n \"id\",\n \"col2\",\n \"col3\",\n \"col4\"\n from source\n \n )\n \n select * from renamed","fct_model.sql":"-- Use the `ref` function to select from other models\n\nselect *\nfrom \"KEBOOLA_9457\".\"WORKSPACE_26035590\".\"stg_model\"\nwhere \"id\" = 1"}} | ||
{"compiled":{"fct_model.sql":"-- Use the `ref` function to select from other models\n\nselect *\nfrom \"KEBOOLA_%d\".\"WORKSPACE_%d\".\"stg_model\"\nwhere \"id\" = 1","stg_model.sql":"with source as (\n \n select * from \"KEBOOLA_%d\".\"in.c-test-bucket\".\"test\"\n \n ),\n \n renamed as (\n \n select\n \"id\",\n \"col2\",\n \"col3\",\n \"col4\"\n from source\n \n )\n \n select * from renamed"}} |
2 changes: 1 addition & 1 deletion
2
tests/functionalSyncActions/run-sync-action-git-repository/expected-stdout
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 +1 @@ | ||
{"repository":{"url":"https:\/\/github.com\/keboola\/dbt-test-project-public.git","branches":[{"branch":"HEAD","comment":"Removed seed","sha":"695d129","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Tue Sep 27 20:48:36 2022 +0200\""},{"branch":"branch-with-bigquery-sources","comment":"bigquery 12","sha":"4f91c23","author":{"name":"MiroCillik","email":"<[email protected]>"},"date":"Mon Sep 12 12:42:27 2022 +0200\""},{"branch":"branch-with-deps","comment":"Update packages.yml","sha":"4c502f1","author":{"name":"Miroslav \u010cill\u00edk","email":"<[email protected]>"},"date":"Fri Sep 9 14:18:18 2022 +0200\""},{"branch":"branch-with-mssql-sources","comment":"Update src_my_source.yml","sha":"e35b650","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Thu Sep 15 13:46:25 2022 +0200\""},{"branch":"branch-with-postgres-sources","comment":"Update src_my_source.yml","sha":"810f243","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Mon Sep 12 09:13:20 2022 +0200\""},{"branch":"branch-with-redshift-sources","comment":"Update stg_model.sql","sha":"62ebbf6","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Mon Sep 19 08:18:46 2022 +0200\""},{"branch":"branch-with-seed","comment":"Add seed","sha":"4d21bb0","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Tue Sep 27 20:49:07 2022 +0200\""},{"branch":"branch-with-sources","comment":"Fix bucket name","sha":"fe39bd0","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Tue Jun 28 08:50:26 2022 +0200\""},{"branch":"main","comment":"Removed seed","sha":"695d129","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Tue Sep 27 20:48:36 2022 +0200\""},{"branch":"missing-dbt-project-yml","comment":"Deleted dbt_project.yml for test","sha":"95b91fd","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Tue Feb 15 20:53:43 2022 +0100\""},{"branch":"ujovlado-license-and-readme","comment":"Add license","sha":"eea2e13","author":{"name":"Vladim\u00edr Kri\u0161ka","email":"<[email protected]>"},"date":"Tue May 31 00:06:01 2022 +0200\""}]}} | ||
{"repository":{"url":"https:\/\/github.com\/keboola\/dbt-test-project-public.git","branches":[{"branch":"HEAD","comment":"Removed seed","sha":"695d129","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Tue Sep 27 20:48:36 2022 +0200\""},{"branch":"branch-with-bigquery-sources","comment":"bigquery 12","sha":"4f91c23","author":{"name":"MiroCillik","email":"<[email protected]>"},"date":"Mon Sep 12 12:42:27 2022 +0200\""},{"branch":"branch-with-deps","comment":"Update packages.yml","sha":"4c502f1","author":{"name":"Miroslav \u010cill\u00edk","email":"<[email protected]>"},"date":"Fri Sep 9 14:18:18 2022 +0200\""},{"branch":"branch-with-mssql-sources","comment":"Update src_my_source.yml","sha":"e35b650","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Thu Sep 15 13:46:25 2022 +0200\""},{"branch":"branch-with-postgres-sources","comment":"Update src_my_source.yml","sha":"810f243","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Mon Sep 12 09:13:20 2022 +0200\""},{"branch":"branch-with-redshift-sources","comment":"Update stg_model.sql","sha":"62ebbf6","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Mon Sep 19 08:18:46 2022 +0200\""},{"branch":"branch-with-seed","comment":"Update countries.csv","sha":"ef36ebb","author":{"name":"Adam V\u00fdborn\u00fd","email":"<[email protected]>"},"date":"Thu Mar 30 10:59:11 2023 +0200\""},{"branch":"branch-with-sources","comment":"Fix bucket name","sha":"fe39bd0","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Tue Jun 28 08:50:26 2022 +0200\""},{"branch":"main","comment":"Removed seed","sha":"695d129","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Tue Sep 27 20:48:36 2022 +0200\""},{"branch":"missing-dbt-project-yml","comment":"Deleted dbt_project.yml for test","sha":"95b91fd","author":{"name":"AdamVyborny","email":"<[email protected]>"},"date":"Tue Feb 15 20:53:43 2022 +0100\""},{"branch":"ujovlado-license-and-readme","comment":"Add license","sha":"eea2e13","author":{"name":"Vladim\u00edr Kri\u0161ka","email":"<[email protected]>"},"date":"Tue May 31 00:06:01 2022 +0200\""}]}} |
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
2 changes: 1 addition & 1 deletion
2
tests/phpunit/data/artifacts/in/dbt run/compiled/my_new_project/models/example/fct_model.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,5 +1,5 @@ | ||
-- Use the `ref` function to select from other models | ||
|
||
select * | ||
from "SAPI_9317"."WORKSPACE_875822722"."stg_model" | ||
from "SAPI_9317"."WORKSPACE_964066099"."stg_model" | ||
where "id" = 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
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,21 @@ | ||
version: 2 | ||
sources: | ||
- | ||
name: linked-bucket | ||
freshness: | ||
warn_after: | ||
count: 1 | ||
period: hour | ||
error_after: | ||
count: 1 | ||
period: day | ||
database: '{{ env_var("DBT_KBC_PROD_9090_DATABASE") }}' | ||
schema: linked-bucket | ||
loaded_at_field: '"_timestamp"' | ||
tables: | ||
- | ||
name: linkedTable | ||
quoting: | ||
database: true | ||
schema: true | ||
identifier: true |