Skip to content

Commit

Permalink
Upgrade to dbt-core 1.7 (#223)
Browse files Browse the repository at this point in the history
### Summary

Upgrade to dbt-core 1.7

### Description

See dbt-labs/dbt-core#8307

### Test Results

All tests ran and passed 

### Changelog

-   [ ] Added a summary of what this PR accomplishes to CHANGELOG.md

### Related Issue

#209
  • Loading branch information
ravjotbrar authored Apr 26, 2024
1 parent b341a9f commit e7b087e
Show file tree
Hide file tree
Showing 19 changed files with 699 additions and 97 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# dbt-dremio v1.7.0

## Changes

- [#195](https://github.com/dremio/dbt-dremio/issues/195) Ensure the adapter does not try and create folders in object storage source
- [#8307](https://github.com/dbt-labs/dbt-core/discussions/8307) Allow source freshness to be evaluated from table metadata
- [#8307](https://github.com/dbt-labs/dbt-core/discussions/8307) Catalog fetch performance improvements
- [#8307](https://github.com/dbt-labs/dbt-core/discussions/8307) Migrate data_spine macros
- [#195](https://github.com/dremio/dbt-dremio/issues/195) Ensure api call to create folders does not get called when creating a table
- [#220](https://github.com/dremio/dbt-dremio/pull/220) Optimize networking performance with Dremio server


# dbt-dremio v1.5.1

## Changes
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@

dbt is the T in ELT. Organize, cleanse, denormalize, filter, rename, and pre-aggregate the raw data in your warehouse so that it's ready for analysis.

## dbt-dremio version 1.5.1
## Documentation

[Dremio docs for our dbt adapter ](https://github.com/dremio/dbt-dremio/wiki/Using-Materializations-with-Dremio)

## dbt-dremio version 1.7.0

The `dbt-dremio` package contains all of the code enabling dbt to work with [Dremio](https://www.dremio.com/). For more information on using dbt with Dremio, consult [the docs](https://docs.getdbt.com/reference/warehouse-profiles/dremio-profile).

The dbt-dremio package supports both Dremio Cloud and Dremio Software (versions 22.0 and later).

Version 1.5.1 of the dbt-dremio adapter is compatible with dbt-core versions 1.2.0 to 1.5.*.
Version 1.7.0 of the dbt-dremio adapter is compatible with dbt-core versions 1.2.0 to 1.7.*.

> Prior to version 1.1.0b, dbt-dremio was created and maintained by [Fabrice Etanchaud](https://github.com/fabrice-etanchaud) on [their GitHub repo](https://github.com/fabrice-etanchaud/dbt-dremio). Code for using Dremio REST APIs was originally authored by [Ryan Murray](https://github.com/rymurr). Contributors in this repo are credited for laying the groundwork and maintaining the adapter till version 1.0.6.5. The dbt-dremio adapter is maintained and distributed by Dremio starting with version 1.1.0b.
## Getting started

- [Install dbt-dremio](https://docs.getdbt.com/reference/warehouse-setups/dremio-setup)
- Version 1.5.1 of dbt-dremio requires dbt-core >= 1.2.0 and <= 1.5.*. Installing dbt-dremio will automatically upgrade existing dbt-core versions earlier than 1.2.0 to 1.5.*, or install dbt-core v1.5.0 if no version of dbt-core is found.
- Version 1.7.0 of dbt-dremio requires dbt-core >= 1.2.0 and <= 1.7.*. Installing dbt-dremio will automatically upgrade existing dbt-core versions earlier than 1.2.0 to 1.7.*, or install dbt-core v1.7.0 if no version of dbt-core is found.
- Read the [introduction](https://docs.getdbt.com/docs/introduction/) and [viewpoint](https://docs.getdbt.com/docs/about/viewpoint/)

## Join the dbt Community
Expand Down
6 changes: 3 additions & 3 deletions THIRD_PARTY_LICENSES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
charset-normalizer 3.1.0 MIT License
click 8.1.3 BSD License
colorama 0.4.6 BSD License
dbt-core 1.5.0 Apache Software License
dbt-dremio 1.5.1 Apache Software License
dbt-core 1.7.0 Apache Software License
dbt-dremio 1.7.0 Apache Software License
dbt-extractor 0.4.1 Apache Software License
dbt-tests-adapter 1.5.0 Apache Software License
dbt-tests-adapter 1.7.0 Apache Software License
exceptiongroup 1.1.1 MIT License
future 0.18.3 MIT License
grpclib 0.4.3 BSD License
Expand Down
3 changes: 2 additions & 1 deletion dbt/adapters/dremio/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.

version = "1.6.0"
version = "1.7.0"

18 changes: 18 additions & 0 deletions dbt/adapters/dremio/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
from typing import List
from typing import Optional
from dbt.adapters.base.relation import BaseRelation

from dbt.adapters.capability import (
CapabilityDict,
CapabilitySupport,
Support,
Capability,
)
from dbt.adapters.sql.impl import DROP_RELATION_MACRO_NAME
from dbt.events import AdapterLogger

Expand All @@ -31,6 +38,17 @@ class DremioAdapter(SQLAdapter):
ConnectionManager = DremioConnectionManager
Relation = DremioRelation

_capabilities = CapabilityDict(
{
Capability.TableLastModifiedMetadata: CapabilitySupport(
support=Support.Full
),
Capability.SchemaMetadataByRelations: CapabilitySupport(
support=Support.Full
),
}
)

@classmethod
def date_function(cls):
return "current_date"
Expand Down
Loading

0 comments on commit e7b087e

Please sign in to comment.