The Hive adapter plugin for dbt
Project description
dbt-hive
The dbt-hive
adapter allows you to use dbt along with Apache Hive and Cloudera Data Platform
Getting started
- Install dbt
- Read the introduction and viewpoint
Credits
The initial adapter code was developed by bachng2017 who agreed to transfer the ownership and continue active development. This code base is now being actively developed and maintained by Cloudera.
Requirements
Current version of dbt-hive uses dbt-core 1.8.*. We are actively working on supporting the next available version of dbt-core.
Python >= 3.8 dbt-core ~= 1.8.* impyla >= 0.18
Install
pip3 install --user dbt-hive
Sample profile
demo_project:
target: dev
outputs:
dev:
type: hive
auth_type: LDAP
user: [username]
password: [password]
schema: [schema]
host: [hive-meta-store-host]
port: 443
http_path: [http-path]
thread: 1
Supported features
Name | Supported | Iceberg |
---|---|---|
Materialization: View | Yes | N/A |
Materialization: Table | Yes | Yes |
Materialization: Table with Partitions | Yes | Yes |
Materialization: Incremental - Append | Yes | Yes |
Materialization: Incremental - Append with Partitions | Yes | Yes |
Materialization: Incremental - Insert+Overwrite with Partitions | Yes | No |
Materialization: Incremental - Merge | Yes | Yes |
Materialization: Incremental - Merge with Partitions | No | Yes* |
Materialization: Ephemeral | No | No |
Seeds | Yes | Yes |
Tests | Yes | Yes |
Snapshots | No | No |
Documentation | Yes | No |
Authentication: LDAP | Yes | Yes |
Authentication: Kerberos | Yes | Yes |
Incremental
Incremental models are explained in dbt documentation. This section covered the details about the incremental strategy supported by the dbt-hive.
Strategy | ACID Table | Iceberg Table |
---|---|---|
Incremental Full-Refresh | Yes | Yes |
Incremental Append | Yes | Yes |
Incremental Append with Partitions | Yes | Yes |
Incremental Insert Overwrite | Not recommended without Partitions* | Not recommended without Partitions* |
Incremental Insert Overwrite with Partitions | Yes | No |
Incremental Merge | Yes | Yes* (only v2) |
Incremental Merge with Partitions | No* | Yes* (only v2) |
Note*:
- Incremental Insert overwrite without the partition columns results into completely overwriting the full table and may result in the data-loss. Hence it is not recommended to used. This can happen for Hive ACID, Iceberg v1 & v2 tables.
- Incremental Merge for iceberg v1 table is not supported because Iceberg v1 tables are not transactional.
- Incremental Merge with partition columns is not supported because Hive ACID tables doesn't support updating values of partition columns.
Support for On-Schema Change strategy in dbt-hive:
Strategy | ACID Table | Iceberg Table |
---|---|---|
ignore (default) | Supported | Supported |
fail | Supported | Supported |
append_new_columns | Adds new columns | Adds new columns |
sync_all_columns | Adds new columns and updates datatypes but doesn't remove existing columns | Adds new columns, updates datatypes and removes existing columns |
Tests Coverage
Functional Tests
Name | Base | Iceberg |
---|---|---|
Materialization: View | Yes | N/A |
Materialization: Table | Yes | Yes |
Materialization: Table with Partitions | Yes | Yes |
Materialization: Incremental - Append | Yes | Yes |
Materialization: Incremental - Append with Partitions | Yes | Yes |
Materialization: Incremental - Insert+Overwrite with Partitions | Yes | No |
Materialization: Incremental - Merge | No | No |
Materialization: Ephemeral | No | No |
Seeds | Yes | Yes |
Tests | Yes | Yes |
Snapshots | No | No |
Documentation | Yes | No |
Authentication: LDAP | Yes | Yes |
Authentication: Kerberos | Yes | Yes |
Note: Kerberos is only qualified on Unix platform.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dbt_hive-1.8.0.tar.gz
.
File metadata
- Download URL: dbt_hive-1.8.0.tar.gz
- Upload date:
- Size: 34.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.20 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 573f2fdb5469d64a95b996c41875441781272e7acec9a8d98ff9b160102cdfa0 |
|
MD5 | 7d68cebbd21dc1b3f2e6934704c4f8d8 |
|
BLAKE2b-256 | 9d35b196ae634e8b01bdca42111abbb7bd96f8e4449309be4e7ad4aa4867597c |
File details
Details for the file dbt_hive-1.8.0-py3-none-any.whl
.
File metadata
- Download URL: dbt_hive-1.8.0-py3-none-any.whl
- Upload date:
- Size: 54.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.20 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61efcc4ee81f450766e79ce5decfaffb616e73b92a7af52b3893f701c329ff32 |
|
MD5 | 9ce3a21ee924865575ec6094a5a38135 |
|
BLAKE2b-256 | 0da4f052c95fa3acd5d3be338376b67f48489efdb40818c56b3dbe5b2e34c385 |