This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dbt-fal): make fal-scripts-path value available as a path to imp…
…ort for models (#645) * add local import to integration tests * feat(dbt-fal): make fal-scripts-path value available as a path to import for models * Change default fal-scripts-path value * use project_root
- Loading branch information
Showing
7 changed files
with
53 additions
and
10 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
adapter/integration_tests/projects/env_project/fal_scripts/utils/get_bool.py
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,3 @@ | ||
def get_bool() -> bool: | ||
print("getting the bool") | ||
return False |
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 |
---|---|---|
|
@@ -12,3 +12,6 @@ target-path: "{{ env_var('temp_dir') }}/target" | |
|
||
models: | ||
+schema: custom | ||
|
||
vars: | ||
fal-scripts-path: "utils" |
4 changes: 3 additions & 1 deletion
4
adapter/integration_tests/projects/simple_project/models/model_c.py
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,6 +1,8 @@ | ||
def model(dbt, fal): | ||
from get_bool import get_bool | ||
|
||
dbt.config(materialized="table") | ||
df = dbt.ref("model_b") | ||
|
||
df["my_bool"] = True | ||
df["my_bool"] = get_bool() | ||
return df |
3 changes: 3 additions & 0 deletions
3
adapter/integration_tests/projects/simple_project/utils/get_bool.py
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,3 @@ | ||
def get_bool() -> bool: | ||
print("getting the bool") | ||
return False |
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