commit 4cc48234d330ba35d7eec98b2d7062bc8d31d8cb Author: root Date: Sat Mar 6 11:03:56 2021 +0530 test diff --git a/dbt_project.yml b/dbt_project.yml new file mode 100644 index 0000000..940b78a --- /dev/null +++ b/dbt_project.yml @@ -0,0 +1,10 @@ +name: 'my_namespace' +version: '0.1.0' + +require-dbt-version: [">=0.18.0", "<0.20.0"] +config-version: 2 + +target-path: "targets" +clean-targets: ["target", "dbt_modules"] +macro-paths: ["macros"] +log-path: "logs" diff --git a/macros/helper.sql b/macros/helper.sql new file mode 100644 index 0000000..e6084c5 --- /dev/null +++ b/macros/helper.sql @@ -0,0 +1,8 @@ +{% set pkgname = 'my_namespace'%} +{% macro current_timestamp() %} + getdate() +{% endmacro %} + +{% macro current_timestamp2() -%} + { return adapter.dispatch('current_timestamp', packages='my_namespace')} +{%- endmacro %}