diff --git a/dbt/include/vertica/macros/adapters.sql b/dbt/include/vertica/macros/adapters.sql index 4b0da7f..9826a95 100644 --- a/dbt/include/vertica/macros/adapters.sql +++ b/dbt/include/vertica/macros/adapters.sql @@ -119,6 +119,7 @@ create {% if temporary: -%}local temporary{%- endif %} table {{ relation.include(database=(not temporary), schema=(not temporary)) }} + {% if temporary: -%}on commit preserve rows{%- endif %} as ( {{ sql }} ); diff --git a/setup.py b/setup.py index e05cfa4..9b22d0f 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ import pathlib package_name = "dbt-vertica" -package_version = "0.18.0" +package_version = "0.18.1" description = """The vertica adapter plugin for dbt (data build tool)""" HERE = pathlib.Path(__file__).parent @@ -29,7 +29,7 @@ ] }, install_requires=[ - 'dbt-core>=0.18.0', + 'dbt-core~=0.18.0', 'vertica-python>=0.10.0', ] )