diff --git a/.gitignore b/.gitignore index 2381230b..4d6c0151 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ env.sh .python_version .vscode +.venv \ No newline at end of file diff --git a/macros/upload_invocations.sql b/macros/upload_invocations.sql index 155dfdcb..bc1bec84 100644 --- a/macros/upload_invocations.sql +++ b/macros/upload_invocations.sql @@ -40,7 +40,7 @@ '{{ env_var('DBT_CLOUD_JOB_ID', '') }}', {# dbt_cloud_job_id #} '{{ env_var('DBT_CLOUD_RUN_ID', '') }}', {# dbt_cloud_run_id #} '{{ env_var('DBT_CLOUD_RUN_REASON_CATEGORY', '') }}', {# dbt_cloud_run_reason_category #} - '{{ env_var('DBT_CLOUD_RUN_REASON', '') }}', {# dbt_cloud_run_reason #} + '{{ env_var('DBT_CLOUD_RUN_REASON', '') | replace("'","\\'") }}', {# dbt_cloud_run_reason #} {% if var('env_vars', none) %} {% set env_vars_dict = {} %} @@ -88,7 +88,7 @@ '{{ env_var('DBT_CLOUD_JOB_ID', '') }}', {# dbt_cloud_job_id #} '{{ env_var('DBT_CLOUD_RUN_ID', '') }}', {# dbt_cloud_run_id #} '{{ env_var('DBT_CLOUD_RUN_REASON_CATEGORY', '') }}', {# dbt_cloud_run_reason_category #} - '{{ env_var('DBT_CLOUD_RUN_REASON', '') }}', {# dbt_cloud_run_reason #} + '{{ env_var('DBT_CLOUD_RUN_REASON', '') | replace("'","\\'") }}', {# dbt_cloud_run_reason #} {% if var('env_vars', none) %} {% set env_vars_dict = {} %} diff --git a/tox.ini b/tox.ini index c202dad2..f9b1e76e 100644 --- a/tox.ini +++ b/tox.ini @@ -141,5 +141,5 @@ changedir = integration_test_project deps = dbt-spark[ODBC]~=1.3.0 commands = dbt deps - dbt build --target spark + dbt build --exclude snapshot --target spark