Skip to content

Commit db2bc24

Browse files
authored
DBT-763: DBT-764: Upgrading the dbt-core to v1.5.10 and resolving issues (#137)
* DBT-763: DBT-764: Pining the protobuf to 4.x and implemented the unique_field() required for upgrading dbt-core to 1.5.10 * adding comments for future
1 parent e050515 commit db2bc24

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

dbt/adapters/hive/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
version = "1.4.0"
14+
version = "1.5.0"

dbt/adapters/hive/connections.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ def __post_init__(self):
9999
def type(self):
100100
return "hive"
101101

102+
@property
103+
def unique_field(self) -> str:
104+
return f"{self.host}_{self.schema}_{self.username}"
105+
102106
def _connection_keys(self):
103107
return "host", "schema", "user"
104108

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
dbt-tests-adapter==1.4.*
1+
dbt-tests-adapter==1.5.*
22
pre-commit~=2.21;python_version=="3.7"
33
pre-commit~=3.2;python_version>="3.8"
44
pytest

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _get_dbt_core_version():
4545

4646
package_name = "dbt-hive"
4747
# make sure this always matches dbt/adapters/hive/__version__.py
48-
package_version = "1.4.0"
48+
package_version = "1.5.0"
4949
description = """The Hive adapter plugin for dbt"""
5050

5151
dbt_core_version = _get_dbt_core_version()
@@ -77,6 +77,10 @@ def _get_dbt_core_version():
7777
"impyla==0.18",
7878
"sqlparams>=3.0.0",
7979
"python-decouple>=3.6",
80+
# pining the protobuf version to 4.x because the dbt-core backports were messed up.
81+
# more details in https://github.com/dbt-labs/dbt-core/issues/9830.
82+
# TODO: remove this pin once the above issue and https://github.com/dbt-labs/dbt-core/issues/9724 is resolved.
83+
"protobuf>=4.0.0,<5",
8084
"kerberos>=1.3.0; platform_system == 'Darwin' or platform_system == 'Linux' ",
8185
"winkerberos>=0.9.1; platform_system == 'Windows' ",
8286
],

0 commit comments

Comments
 (0)