Skip to content

Commit 7a79693

Browse files
author
Dat Nguyen
committed
docs: enrich docs for sis
1 parent 9793c50 commit 7a79693

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

macros/sis/sis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,18 @@ macros:
66
How to deploy:
77
```bash
88
dbt run-operation sis_deploy__diff_helper
9+
# or
10+
dbt run-operation sis_deploy__diff_helper --args '{packages_install_path: your_specific_path}'
911
```
12+
args:
13+
- name: packages_install_path
14+
description: |
15+
Default to `dbt_packages`.
16+
17+
If you configured `packages-install-path` with a specific value e.g. `my_installed_packages`,
18+
then the deployment command will need to use this argument, for example:
19+
20+
```bash
21+
dbt run-operation sis_deploy__diff_helper \
22+
--args '{packages_install_path: my_installed_packages}'
23+
```

macros/sis/sis_deploy__diff_helper.sql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
{% macro sis_deploy__diff_helper(package_dir='dbt_packages/data_diff') -%}
1+
{% macro sis_deploy__diff_helper(packages_install_path='dbt_packages') -%}
22

33
{% set ns = data_diff.get_namespace() %}
4-
54
{% set query %}
65

76
create schema if not exists {{ ns }};
87
create or replace stage {{ ns }}.stage_diff_helper
98
directory = ( enable = true )
109
comment = 'Named stage for diff helper SiS appilication';
1110

12-
PUT file://{{ package_dir }}/macros/sis/diff_helper.py @{{ ns }}.stage_diff_helper overwrite=true auto_compress=false;
11+
PUT file://{{ packages_install_path }}/data_diff/macros/sis/diff_helper.py @{{ ns }}.stage_diff_helper
12+
overwrite=true
13+
auto_compress=false;
1314

1415
create or replace streamlit {{ ns }}.data_diff_helper
1516
root_location = '@{{ ns }}.stage_diff_helper'

0 commit comments

Comments
 (0)