Skip to content

Commit

Permalink
Dbt185 release (#140)
Browse files Browse the repository at this point in the history
Code merged
  • Loading branch information
mkottakota1 authored Sep 16, 2024
1 parent 969bbb9 commit df927ce
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 19 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
- "Breaking changes" listed under a version may require action from end users.


### 1.8.3

### 1.8.5
=======
#### Features:
- Update base adapter references as part of decoupling migration to support dbt core 1.8.3 https://github.com/vertica/dbt-vertica/issues/131
- Support --empty tests
- Support all types for unit testing in dbt-vertica, expand coverage of safe_cast macro https://github.com/dbt-labs/dbt-core/discussions/9798
- Add new workflow for internal patch releases
- Support limiting get_catalog by object name
- add --empty value to jinja context as flags.EMPTY
- Add --empty value to jinja context as flags.EMPTY

#### Fixes:
- Unit-test check tests
Expand All @@ -22,7 +22,7 @@
- BaseTestEmpty
- Support limiting get_catalog check tests
- BaseChangeRelationTypeValidator
- warning on unit_test config in dbt_project.yaml file
- Warning on unit_test config in dbt_project.yaml file
- Additional tests
- TestBaseContext
- BaseIncrementalOnSchemaChangeSetup
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dbt-vertica has been developed using the following software and versions:
* Vertica Server 23.4.0-0
* Python 3.11
* vertica-python client 1.3.1
* dbt-core 1.8.3
* dbt-core 1.8.5
* dbt-tests-adapter 1.8.0

## Supported Features
Expand Down
3 changes: 1 addition & 2 deletions dbt/adapters/vertica/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.

version = "1.8.5"


version = "1.8.3"
10 changes: 2 additions & 8 deletions dbt/include/vertica/macros/utils/safe_cast.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
{% macro vertica__safe_cast(field, type) %}
{% if type|upper == "GEOMETRY" -%}
try_to_geometry({{field}})
{% elif type|upper == "GEOGRAPHY" -%}
try_to_geography({{field}})
{% else -%}
{{ adapter.dispatch('cast', 'dbt')(field, type) }}
{% endif -%}
{% endmacro %}
cast({{field}} as {{type}})
{% endmacro %}
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def _get_dbt_core_version():


package_name = "dbt-vertica"
package_version = "1.8.3"
package_version = "1.8.5"

description = """Official vertica adapter plugin for dbt (data build tool)"""
dbt_core_version = _get_dbt_core_version()

Expand Down Expand Up @@ -113,7 +114,7 @@ def _get_dbt_core_version():
]
},
install_requires=[
'dbt-core==1.8.3',
'dbt-core==1.8.5',
# "dbt-core~={}".format(dbt_core_version),
'vertica-python>=1.1.0',
'dbt-tests-adapter==1.8.0',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ def test_case_insensitivity(self, project):

results = run_dbt(["test"])


class TestVerticaUnitTestCaseInsensitivity(BaseUnitTestCaseInsensivity):
pass

2 changes: 1 addition & 1 deletion tests/functional/adapter/unit_testing/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ def test_unit_test_data_type(self, project, data_types):


class TestVerticaUnitTestingTypes(BaseUnitTestingTypes):
pass
pass

0 comments on commit df927ce

Please sign in to comment.