dbt-adapters 1.14.5__py3-none-any.whl → 1.14.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dbt-adapters might be problematic. Click here for more details.
- dbt/adapters/__about__.py +1 -1
- dbt/adapters/base/relation.py +8 -0
- dbt/adapters/contracts/relation.py +1 -0
- dbt/adapters/events/adapter_types.proto +2 -1
- dbt/adapters/record/cursor/cursor.py +15 -0
- dbt/adapters/record/handle.py +16 -1
- {dbt_adapters-1.14.5.dist-info → dbt_adapters-1.14.7.dist-info}/METADATA +1 -1
- {dbt_adapters-1.14.5.dist-info → dbt_adapters-1.14.7.dist-info}/RECORD +10 -10
- {dbt_adapters-1.14.5.dist-info → dbt_adapters-1.14.7.dist-info}/WHEEL +0 -0
- {dbt_adapters-1.14.5.dist-info → dbt_adapters-1.14.7.dist-info}/licenses/LICENSE +0 -0
dbt/adapters/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "1.14.
|
|
1
|
+
version = "1.14.7"
|
dbt/adapters/base/relation.py
CHANGED
|
@@ -422,6 +422,10 @@ class BaseRelation(FakeAPIObject, Hashable):
|
|
|
422
422
|
def is_materialized_view(self) -> bool:
|
|
423
423
|
return self.type == RelationType.MaterializedView
|
|
424
424
|
|
|
425
|
+
@property
|
|
426
|
+
def is_pointer(self) -> bool:
|
|
427
|
+
return self.type == RelationType.PointerTable
|
|
428
|
+
|
|
425
429
|
@classproperty
|
|
426
430
|
def Table(cls) -> str:
|
|
427
431
|
return str(RelationType.Table)
|
|
@@ -442,6 +446,10 @@ class BaseRelation(FakeAPIObject, Hashable):
|
|
|
442
446
|
def MaterializedView(cls) -> str:
|
|
443
447
|
return str(RelationType.MaterializedView)
|
|
444
448
|
|
|
449
|
+
@classproperty
|
|
450
|
+
def PointerTable(cls) -> str:
|
|
451
|
+
return str(RelationType.PointerTable)
|
|
452
|
+
|
|
445
453
|
@classproperty
|
|
446
454
|
def get_relation_type(cls) -> Type[RelationType]:
|
|
447
455
|
return RelationType
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
from typing import Any, Optional
|
|
2
2
|
|
|
3
|
+
from dbt_common.events.base_types import BaseEvent
|
|
4
|
+
from dbt_common.events.functions import fire_event
|
|
5
|
+
from dbt_common.events.types import RecordReplayIssue
|
|
3
6
|
from dbt_common.record import record_function
|
|
4
7
|
|
|
5
8
|
from dbt.adapters.contracts.connection import Connection
|
|
@@ -52,3 +55,15 @@ class RecordReplayCursor:
|
|
|
52
55
|
@record_function(CursorGetDescriptionRecord, method=True, id_field_name="connection_name")
|
|
53
56
|
def description(self) -> str:
|
|
54
57
|
return self.native_cursor.description
|
|
58
|
+
|
|
59
|
+
def _fire_event(self, evt: BaseEvent) -> None:
|
|
60
|
+
"""Wraps fire_event for easier test mocking."""
|
|
61
|
+
fire_event(evt)
|
|
62
|
+
|
|
63
|
+
def __getattr__(self, name: str) -> Any:
|
|
64
|
+
self._fire_event(
|
|
65
|
+
RecordReplayIssue(
|
|
66
|
+
msg=f"Unexpected attribute '{name}' accessed on {self.__class__.__name__}"
|
|
67
|
+
)
|
|
68
|
+
)
|
|
69
|
+
return getattr(self.native_cursor, name)
|
dbt/adapters/record/handle.py
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
from typing import Any
|
|
2
2
|
|
|
3
|
-
from
|
|
3
|
+
from dbt_common.events.base_types import BaseEvent
|
|
4
|
+
from dbt_common.events.functions import fire_event
|
|
5
|
+
from dbt_common.events.types import RecordReplayIssue
|
|
4
6
|
|
|
7
|
+
from dbt.adapters.contracts.connection import Connection
|
|
5
8
|
from dbt.adapters.record.cursor.cursor import RecordReplayCursor
|
|
6
9
|
|
|
7
10
|
|
|
@@ -38,3 +41,15 @@ class RecordReplayHandle:
|
|
|
38
41
|
@property
|
|
39
42
|
def closed(self):
|
|
40
43
|
return self.native_handle.closed
|
|
44
|
+
|
|
45
|
+
def _fire_event(self, evt: BaseEvent) -> None:
|
|
46
|
+
"""Wraps fire_event for easier test mocking."""
|
|
47
|
+
fire_event(evt)
|
|
48
|
+
|
|
49
|
+
def __getattr__(self, name: str) -> Any:
|
|
50
|
+
self._fire_event(
|
|
51
|
+
RecordReplayIssue(
|
|
52
|
+
msg=f"Unexpected attribute '{name}' accessed on {self.__class__.__name__}"
|
|
53
|
+
)
|
|
54
|
+
)
|
|
55
|
+
return getattr(self.native_handle, name)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dbt-adapters
|
|
3
|
-
Version: 1.14.
|
|
3
|
+
Version: 1.14.7
|
|
4
4
|
Summary: The set of adapter protocols and base functionality that supports integration with dbt-core
|
|
5
5
|
Project-URL: Homepage, https://github.com/dbt-labs/dbt-adapters/tree/main/dbt-adapters
|
|
6
6
|
Project-URL: Documentation, https://docs.getdbt.com
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
dbt/adapters/__about__.py,sha256=
|
|
1
|
+
dbt/adapters/__about__.py,sha256=ImXWGcZYwOAKH7comqn46VSW6WO_pNwUt48KrIYwrRM,19
|
|
2
2
|
dbt/adapters/__init__.py,sha256=3noHsg-64qI0_Pw6OR9F7l1vU2_qrJvinq8POTtuaZM,252
|
|
3
3
|
dbt/adapters/cache.py,sha256=WGy4ewnz-J13LverTACBW2iFhGswrWLgm-wiBrQnMzo,20084
|
|
4
4
|
dbt/adapters/capability.py,sha256=M3FkC9veKnNB7a7uQyl7EHX_AGNXPChbHAkcY4cgXCY,2534
|
|
@@ -15,7 +15,7 @@ dbt/adapters/base/impl.py,sha256=lXDMcU0FJgNgsJUyFjqLqFzdV1IYBUtSOI7p28Wd5jM,782
|
|
|
15
15
|
dbt/adapters/base/meta.py,sha256=c5j0qeGec1cAi-IlVV_JkhMk01p5XqbtGj02uxGP1S4,5686
|
|
16
16
|
dbt/adapters/base/plugin.py,sha256=rm0GjNHnWM2mn0GJOjciZLwn-02xlzWCoMT9u-epwP0,1076
|
|
17
17
|
dbt/adapters/base/query_headers.py,sha256=UluGd9IYCYkoMiDi5Yx_lnrCOSjWppjwRro4SIGgx8I,3496
|
|
18
|
-
dbt/adapters/base/relation.py,sha256=
|
|
18
|
+
dbt/adapters/base/relation.py,sha256=eePneHZQ-bb0ZFaEpC_1xzsxJF38e6k7b3FUxD8PK0I,19383
|
|
19
19
|
dbt/adapters/catalogs/__init__.py,sha256=Pm0EseleLEZRK3ML1FlID1aoVKeqOPqZvJ_TYYnURfY,372
|
|
20
20
|
dbt/adapters/catalogs/_client.py,sha256=XEKjpEg-C0OeQD_TzKKkmW5H_KyYyp2UAeiVBFnf_Ok,2236
|
|
21
21
|
dbt/adapters/catalogs/_exceptions.py,sha256=tPYk1-4n73GnY-a42wer0CJ9eyV4XEc28LrjvRp_r50,1129
|
|
@@ -25,10 +25,10 @@ dbt/adapters/clients/jinja.py,sha256=NsZOiBpOLunS46hRL5OcX1MpY3Ih6_87Vgz4qd_PNbc
|
|
|
25
25
|
dbt/adapters/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
26
|
dbt/adapters/contracts/connection.py,sha256=35mErirojY6Au63wjFgQokk_x7JWHjPUa6hiXjDEs0k,6917
|
|
27
27
|
dbt/adapters/contracts/macros.py,sha256=NYVDi5ww7v4ksKBwF836TXE-2xU4IBaUINqvxMY-ieU,366
|
|
28
|
-
dbt/adapters/contracts/relation.py,sha256=
|
|
28
|
+
dbt/adapters/contracts/relation.py,sha256=DIWjEeEY1QQWBAUjVNLP5WDu2HcMdBPLDwJnh8Xb4wk,4793
|
|
29
29
|
dbt/adapters/events/README.md,sha256=kVUFIsDQrHTUmk9Mmu-yXYkWh4pA5MJK_H6739rQr5I,3521
|
|
30
30
|
dbt/adapters/events/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
|
-
dbt/adapters/events/adapter_types.proto,sha256=
|
|
31
|
+
dbt/adapters/events/adapter_types.proto,sha256=syAfh0JK3j7h4dCL7ygf7ManzAI0hbjMT0a3C2iyWg4,9810
|
|
32
32
|
dbt/adapters/events/adapter_types_pb2.py,sha256=uEf5Pl6Dp_s9W-ja8clwEQg9iLloLu0EqsbambYVIes,26849
|
|
33
33
|
dbt/adapters/events/base_types.py,sha256=sTlNRl15GaRIrIDVxalf7sK08dfo3Ol1Ua2jbFO7-7c,966
|
|
34
34
|
dbt/adapters/events/logging.py,sha256=1nRFswQubgUrVHL5DB9ewBtbEv1-OcIXC7mMmu3NOaM,2350
|
|
@@ -41,9 +41,9 @@ dbt/adapters/exceptions/connection.py,sha256=x82j2Ix242Slm6Ima8Tol3GLOB9yZYH5lq6
|
|
|
41
41
|
dbt/adapters/exceptions/database.py,sha256=nIXJdQyPQOZaiKvCkQ3MoKlKOiaN58rtDZflw3CSkug,1618
|
|
42
42
|
dbt/adapters/record/__init__.py,sha256=u_0eJzN5RL90oL-RNoP2wWGMCGp0kG0lZ0uVWnnGdxs,123
|
|
43
43
|
dbt/adapters/record/base.py,sha256=oqBeddunk9bAyNZBC2pWQohYtD6_ju_tf_74I6NAN04,4277
|
|
44
|
-
dbt/adapters/record/handle.py,sha256=
|
|
44
|
+
dbt/adapters/record/handle.py,sha256=hCQpDmZGKqJXrSqgYcb-F542TZi069uz1MY9fS15INo,1907
|
|
45
45
|
dbt/adapters/record/serialization.py,sha256=ehcLioi4J7TujP58fMNGcePuMxx-2G4Dj1KoYm6j6FU,756
|
|
46
|
-
dbt/adapters/record/cursor/cursor.py,sha256=
|
|
46
|
+
dbt/adapters/record/cursor/cursor.py,sha256=AW0B1g0j5mn7pUnvsE7zd4_Zi7cSFOsyvPbE2HV0CPI,2967
|
|
47
47
|
dbt/adapters/record/cursor/description.py,sha256=5LNebP2AF2aicPWfM9FsD5r7SAmdac8TX_4NZfJQgPk,1060
|
|
48
48
|
dbt/adapters/record/cursor/execute.py,sha256=f8Yc1MKExj7QLbFnK8WnnwsoGESuYMWnFWhytbcAPjc,1271
|
|
49
49
|
dbt/adapters/record/cursor/fetchall.py,sha256=tcvxHOleST2vrP9Bs_HAbAGutLv9za2vH32HCl8ayc4,2149
|
|
@@ -163,7 +163,7 @@ dbt/include/global_project/macros/utils/right.sql,sha256=EwNG98CAFIwNDmarwopf7Rk
|
|
|
163
163
|
dbt/include/global_project/macros/utils/safe_cast.sql,sha256=1mswwkDACmIi1I99JKb_-vq3kjMe4HhMRV70mW8Bt4Y,298
|
|
164
164
|
dbt/include/global_project/macros/utils/split_part.sql,sha256=fXEIS0oIiYR7-4lYbb0QbZdG-q2TpV63AFd1ky4I5UM,714
|
|
165
165
|
dbt/include/global_project/tests/generic/builtin.sql,sha256=p94xdyPwb2TlxgLBqCfrcRfJ1QNgsjPvBm8f0Q5eqZM,1022
|
|
166
|
-
dbt_adapters-1.14.
|
|
167
|
-
dbt_adapters-1.14.
|
|
168
|
-
dbt_adapters-1.14.
|
|
169
|
-
dbt_adapters-1.14.
|
|
166
|
+
dbt_adapters-1.14.7.dist-info/METADATA,sha256=aNqZ4iD8o3i6JvBAaGygebN5LnkmMEQurrqcG54GxrI,4494
|
|
167
|
+
dbt_adapters-1.14.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
168
|
+
dbt_adapters-1.14.7.dist-info/licenses/LICENSE,sha256=9yjigiJhWcCZvQjdagGKDwrRph58QWc5P2bVSQwXo6s,11344
|
|
169
|
+
dbt_adapters-1.14.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|