forked from dbt-labs/dbt-spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for pyspark connection method
- Loading branch information
cccs-jc
committed
Mar 30, 2022
1 parent
51aebfb
commit faa7e08
Showing
3 changed files
with
165 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% macro source(source_name, identifier, start_dt = None, end_dt = None) %} | ||
{%- set relation = builtins.source(source_name, identifier) -%} | ||
|
||
{%- if execute and (relation.source_meta.python_module or relation.meta.python_module) -%} | ||
{%- do relation.load_python_module(start_dt, end_dt) -%} | ||
{# Return the view name only. Spark view do not support schema and catalog names #} | ||
{%- do return(relation.identifier) -%} | ||
{% else -%} | ||
{%- do return(relation) -%} | ||
{% endif -%} | ||
{% endmacro %} |