Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBT-763: DBT-764: Upgrading the dbt-core to v1.5.10 and resolving issues #137

Merged
merged 2 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dbt/adapters/hive/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.0"
version = "1.5.0"
4 changes: 4 additions & 0 deletions dbt/adapters/hive/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ def __post_init__(self):
def type(self):
return "hive"

@property
def unique_field(self) -> str:
return f"{self.host}_{self.schema}_{self.username}"

def _connection_keys(self):
return "host", "schema", "user"

Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dbt-tests-adapter==1.4.*
dbt-tests-adapter==1.5.*
pre-commit~=2.21;python_version=="3.7"
pre-commit~=3.2;python_version>="3.8"
pytest
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.0"
package_version = "1.5.0"
description = """The Hive adapter plugin for dbt"""

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