From a135838bd8ae5d2d67accde8dfa627a39aaf76ed Mon Sep 17 00:00:00 2001 From: Noopur <159228826+nsharma-25@users.noreply.github.com> Date: Fri, 3 May 2024 23:13:57 +0530 Subject: [PATCH] DBT-778: Upgrade dbt-core version and dbt-hive adapater version to 1.7 (#149) * dbt_core_1.7_upgrade * dbt_core_1.7_upgrade * DBT-782: Update readme requirement to reflect right version (#150) * dbt_core_1.7_upgrade --------- Co-authored-by: Noopur Sharma Co-authored-by: niteshy --- README.md | 4 ++-- dbt/adapters/hive/__version__.py | 2 +- dbt/adapters/hive/column.py | 3 +-- dev-requirements.txt | 2 +- setup.py | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8061735..873411f 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,10 @@ This code base is now being actively developed and maintained by Cloudera. ### Requirements -Current version of dbt-hive use dbt-core 1.6.*. We are actively working on supporting the next version of dbt-core 1.7 +Current version of dbt-hive use dbt-core 1.7.*. We are actively working on supporting the next version of dbt-core 1.8 Python >= 3.8 -dbt-core ~= 1.6.* +dbt-core ~= 1.7.* impyla >= 0.18 ### Install diff --git a/dbt/adapters/hive/__version__.py b/dbt/adapters/hive/__version__.py index 4352a33..6b7c011 100644 --- a/dbt/adapters/hive/__version__.py +++ b/dbt/adapters/hive/__version__.py @@ -11,4 +11,4 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -version = "1.6.0" +version = "1.7.0" diff --git a/dbt/adapters/hive/column.py b/dbt/adapters/hive/column.py index 33c848a..947eeff 100644 --- a/dbt/adapters/hive/column.py +++ b/dbt/adapters/hive/column.py @@ -16,7 +16,6 @@ from dbt.adapters.base.column import Column from dbt.dataclass_schema import dbtClassMixin -from hologram import JsonDict Self = TypeVar("Self", bound="HiveColumn") @@ -71,7 +70,7 @@ def __repr__(self) -> str: # table_stats[f'stats:{key}:include'] = True # return table_stats - def to_column_dict(self, omit_none: bool = True, validate: bool = False) -> JsonDict: + def to_column_dict(self, omit_none: bool = True, validate: bool = False): original_dict = self.to_dict(omit_none=omit_none) # If there are stats, merge them into the root of the dict # original_stats = original_dict.pop('table_stats', None) diff --git a/dev-requirements.txt b/dev-requirements.txt index b79a7e8..450f11f 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,4 +1,4 @@ -dbt-tests-adapter==1.6.* +dbt-tests-adapter==1.7.* pre-commit~=2.21;python_version=="3.7" pre-commit~=3.2;python_version>="3.8" pytest diff --git a/setup.py b/setup.py index 10749e5..4812916 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ def _get_dbt_core_version(): package_name = "dbt-hive" # make sure this always matches dbt/adapters/hive/__version__.py -package_version = "1.6.0" +package_version = "1.7.0" description = """The Hive adapter plugin for dbt""" dbt_core_version = _get_dbt_core_version()