-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add adapter telemetry method for core model run snowplow event. (#328)
- Loading branch information
1 parent
951d98d
commit d83314d
Showing
5 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Under the Hood | ||
body: Add adapter telemetry. | ||
time: 2024-10-16T03:31:59.334011-07:00 | ||
custom: | ||
Author: versusfacit | ||
Issue: "301" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ | |
BaseRelation, | ||
RelationType, | ||
SchemaSearchMap, | ||
AdapterTrackingRelationInfo, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import dbt.adapters.__about__ | ||
|
||
from dbt.adapters.base.impl import BaseAdapter | ||
from dbt.adapters.base.relation import AdapterTrackingRelationInfo | ||
|
||
|
||
def test_telemetry_returns(): | ||
res = BaseAdapter.get_adapter_run_info({}) | ||
|
||
assert res.adapter_name == "base" | ||
assert res.base_adapter_version == dbt.adapters.__about__.version | ||
assert res.adapter_version == "" | ||
assert res.model_adapter_details == {} | ||
|
||
assert type(res) is AdapterTrackingRelationInfo |