Skip to content

Commit

Permalink
Merge branch 'main' into dbeatty/unknown-data-type-code-8912
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare authored Apr 3, 2024
2 parents b74385e + 8cddfd3 commit 7b74b28
Show file tree
Hide file tree
Showing 19 changed files with 131 additions and 137 deletions.
24 changes: 0 additions & 24 deletions .changes/0.1.0-a8.md

This file was deleted.

1 change: 0 additions & 1 deletion .changes/1.0.0-b1.md

This file was deleted.

15 changes: 15 additions & 0 deletions .changes/1.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## dbt-adapter 1.0.0 - April 01, 2024

### Fixes

* Add field wrapper to BaseRelation members that were missing it.
* Add "description" and "meta" fields to RelationConfig protocol

### Under the Hood

* Lazy load agate to improve dbt-core performance
* add BaseAdapater.MAX_SCHEMA_METADATA_RELATIONS

### Security

* Pin `black>=24.3` in `pyproject.toml`
1 change: 0 additions & 1 deletion .changes/1.8.0-a2.md

This file was deleted.

1 change: 0 additions & 1 deletion .changes/1.8.0-b1.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changes/unreleased/Fixes-20240226-224046.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions .changes/unreleased/Under the Hood-20240312-170057.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: ${{ inputs.archive_name }}
path: .
path: dist/

- name: "[DEBUG] Display Structure Of Expected Files"
run: |
Expand Down
31 changes: 8 additions & 23 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie).

## dbt-adapter 1.8.0-b1 - March 01, 2024

## dbt-adapter 1.8.0-a2 - February 28, 2024

## dbt-adapter 1.0.0-b1 - February 27, 2024

## dbt-adapter 0.1.0-a8 - February 22, 2024

### Features

* Update RelationConfig to capture all fields used by adapters
## dbt-adapter 1.0.0 - April 01, 2024

### Fixes

* Ignore adapter-level support warnings for 'custom' constraints
* Make all adapter zone tests importable by removing "Test" prefix
* Add field wrapper to BaseRelation members that were missing it.
* Add "description" and "meta" fields to RelationConfig protocol

### Docs
### Under the Hood

* Configure `changie`
* Setup ADR tracking framework
* Create issue templates
* Create PR template
* Lazy load agate to improve dbt-core performance
* add BaseAdapater.MAX_SCHEMA_METADATA_RELATIONS

### Under the Hood
### Security

* Configure `dependabot`
* Implement unit testing in CI
* Allow version to be specified in either __version__.py or __about__.py
* Remove __init__.py file from dbt.tests
* Pin `black>=24.3` in `pyproject.toml`
2 changes: 1 addition & 1 deletion dbt/adapters/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "1.0.0b1"
version = "1.0.0"
11 changes: 6 additions & 5 deletions dbt/adapters/base/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
Tuple,
Type,
Union,
TYPE_CHECKING,
)

import agate
from dbt_common.events.contextvars import get_node_info
from dbt_common.events.functions import fire_event
from dbt_common.exceptions import DbtInternalError, NotImplementedError
Expand Down Expand Up @@ -48,6 +48,9 @@
)
from dbt.adapters.exceptions import FailedToConnectError, InvalidConnectionError

if TYPE_CHECKING:
import agate


SleepTime = Union[int, float] # As taken by time.sleep.
AdapterHandle = Any # Adapter connection handle objects can be any class.
Expand Down Expand Up @@ -162,9 +165,7 @@ def set_connection_name(self, name: Optional[str] = None) -> Connection:
conn.handle = LazyHandle(self.open)
# Add the connection to thread_connections for this thread
self.set_thread_connection(conn)
fire_event(
NewConnection(conn_name=conn_name, conn_type=self.TYPE, node_info=get_node_info())
)
fire_event(NewConnection(conn_name=conn_name, conn_type=self.TYPE, node_info=get_node_info()))
else: # existing connection either wasn't open or didn't have the right name
if conn.state != "open":
conn.handle = LazyHandle(self.open)
Expand Down Expand Up @@ -396,7 +397,7 @@ def execute(
auto_begin: bool = False,
fetch: bool = False,
limit: Optional[int] = None,
) -> Tuple[AdapterResponse, agate.Table]:
) -> Tuple[AdapterResponse, "agate.Table"]:
"""Execute the given SQL.
:param str sql: The sql to execute.
Expand Down
Loading

0 comments on commit 7b74b28

Please sign in to comment.