dbt-adapters 1.10.3__py3-none-any.whl → 1.11.0__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/impl.py +12 -73
- dbt/adapters/capability.py +0 -3
- dbt/adapters/events/adapter_types_pb2.py +7 -17
- dbt/include/global_project/macros/materializations/snapshots/helpers.sql +5 -49
- dbt/include/global_project/macros/materializations/snapshots/snapshot.sql +1 -1
- dbt/include/global_project/macros/materializations/snapshots/strategies.sql +4 -8
- {dbt_adapters-1.10.3.dist-info → dbt_adapters-1.11.0.dist-info}/METADATA +7 -9
- {dbt_adapters-1.10.3.dist-info → dbt_adapters-1.11.0.dist-info}/RECORD +11 -11
- {dbt_adapters-1.10.3.dist-info → dbt_adapters-1.11.0.dist-info}/WHEEL +1 -1
- {dbt_adapters-1.10.3.dist-info → dbt_adapters-1.11.0.dist-info}/licenses/LICENSE +0 -0
dbt/adapters/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "1.
|
|
1
|
+
version = "1.11.0"
|
dbt/adapters/base/impl.py
CHANGED
|
@@ -98,13 +98,6 @@ GET_CATALOG_MACRO_NAME = "get_catalog"
|
|
|
98
98
|
GET_CATALOG_RELATIONS_MACRO_NAME = "get_catalog_relations"
|
|
99
99
|
FRESHNESS_MACRO_NAME = "collect_freshness"
|
|
100
100
|
GET_RELATION_LAST_MODIFIED_MACRO_NAME = "get_relation_last_modified"
|
|
101
|
-
DEFAULT_BASE_BEHAVIOR_FLAGS = [
|
|
102
|
-
{
|
|
103
|
-
"name": "require_batched_execution_for_custom_microbatch_strategy",
|
|
104
|
-
"default": False,
|
|
105
|
-
"docs_url": "https://docs.getdbt.com/docs/build/incremental-microbatch",
|
|
106
|
-
}
|
|
107
|
-
]
|
|
108
101
|
|
|
109
102
|
|
|
110
103
|
class ConstraintSupport(str, Enum):
|
|
@@ -206,14 +199,6 @@ class FreshnessResponse(TypedDict):
|
|
|
206
199
|
age: float # age in seconds
|
|
207
200
|
|
|
208
201
|
|
|
209
|
-
class SnapshotStrategy(TypedDict):
|
|
210
|
-
unique_key: Optional[str]
|
|
211
|
-
updated_at: Optional[str]
|
|
212
|
-
row_changed: Optional[str]
|
|
213
|
-
scd_id: Optional[str]
|
|
214
|
-
hard_deletes: Optional[str]
|
|
215
|
-
|
|
216
|
-
|
|
217
202
|
class BaseAdapter(metaclass=AdapterMeta):
|
|
218
203
|
"""The BaseAdapter provides an abstract base class for adapters.
|
|
219
204
|
|
|
@@ -288,7 +273,8 @@ class BaseAdapter(metaclass=AdapterMeta):
|
|
|
288
273
|
self.connections = self.ConnectionManager(config, mp_context)
|
|
289
274
|
self._macro_resolver: Optional[MacroResolverProtocol] = None
|
|
290
275
|
self._macro_context_generator: Optional[MacroContextGeneratorCallable] = None
|
|
291
|
-
|
|
276
|
+
# this will be updated to include global behavior flags once they exist
|
|
277
|
+
self.behavior = [] # type: ignore
|
|
292
278
|
|
|
293
279
|
###
|
|
294
280
|
# Methods to set / access a macro resolver
|
|
@@ -328,10 +314,14 @@ class BaseAdapter(metaclass=AdapterMeta):
|
|
|
328
314
|
def _behavior_flags(self) -> List[BehaviorFlag]:
|
|
329
315
|
"""
|
|
330
316
|
This method should be overwritten by adapter maintainers to provide platform-specific flags
|
|
331
|
-
|
|
332
|
-
The BaseAdapter should NOT include any global flags here as those should be defined via DEFAULT_BASE_BEHAVIOR_FLAGS
|
|
333
317
|
"""
|
|
334
|
-
return [
|
|
318
|
+
return [
|
|
319
|
+
{
|
|
320
|
+
"name": "require_batched_execution_for_custom_microbatch_strategy",
|
|
321
|
+
"default": False,
|
|
322
|
+
"docs_url": "https://docs.getdbt.com/docs/build/incremental-microbatch",
|
|
323
|
+
}
|
|
324
|
+
]
|
|
335
325
|
|
|
336
326
|
###
|
|
337
327
|
# Methods that pass through to the connection manager
|
|
@@ -803,8 +793,8 @@ class BaseAdapter(metaclass=AdapterMeta):
|
|
|
803
793
|
columns = self.get_columns_in_relation(relation)
|
|
804
794
|
names = set(c.name.lower() for c in columns)
|
|
805
795
|
missing = []
|
|
806
|
-
# Note: we're not checking dbt_updated_at
|
|
807
|
-
#
|
|
796
|
+
# Note: we're not checking dbt_updated_at here because it's not
|
|
797
|
+
# always present.
|
|
808
798
|
for column in ("dbt_scd_id", "dbt_valid_from", "dbt_valid_to"):
|
|
809
799
|
desired = column_names[column] if column_names else column
|
|
810
800
|
if desired not in names:
|
|
@@ -813,28 +803,6 @@ class BaseAdapter(metaclass=AdapterMeta):
|
|
|
813
803
|
if missing:
|
|
814
804
|
raise SnapshotTargetNotSnapshotTableError(missing)
|
|
815
805
|
|
|
816
|
-
@available.parse_none
|
|
817
|
-
def assert_valid_snapshot_target_given_strategy(
|
|
818
|
-
self, relation: BaseRelation, column_names: Dict[str, str], strategy: SnapshotStrategy
|
|
819
|
-
) -> None:
|
|
820
|
-
# Assert everything we can with the legacy function.
|
|
821
|
-
self.valid_snapshot_target(relation, column_names)
|
|
822
|
-
|
|
823
|
-
# Now do strategy-specific checks.
|
|
824
|
-
# TODO: Make these checks more comprehensive.
|
|
825
|
-
if strategy.get("hard_deletes", None) == "new_record":
|
|
826
|
-
columns = self.get_columns_in_relation(relation)
|
|
827
|
-
names = set(c.name.lower() for c in columns)
|
|
828
|
-
missing = []
|
|
829
|
-
|
|
830
|
-
for column in ("dbt_is_deleted",):
|
|
831
|
-
desired = column_names[column] if column_names else column
|
|
832
|
-
if desired not in names:
|
|
833
|
-
missing.append(desired)
|
|
834
|
-
|
|
835
|
-
if missing:
|
|
836
|
-
raise SnapshotTargetNotSnapshotTableError(missing)
|
|
837
|
-
|
|
838
806
|
@available.parse_none
|
|
839
807
|
def expand_target_column_types(
|
|
840
808
|
self, from_relation: BaseRelation, to_relation: BaseRelation
|
|
@@ -1610,14 +1578,8 @@ class BaseAdapter(metaclass=AdapterMeta):
|
|
|
1610
1578
|
return ["append"]
|
|
1611
1579
|
|
|
1612
1580
|
def builtin_incremental_strategies(self):
|
|
1613
|
-
"""
|
|
1614
|
-
List of possible builtin strategies for adapters
|
|
1615
|
-
|
|
1616
|
-
Microbatch is added by _default_. It is only not added when the behavior flag
|
|
1617
|
-
`require_batched_execution_for_custom_microbatch_strategy` is True.
|
|
1618
|
-
"""
|
|
1619
1581
|
builtin_strategies = ["append", "delete+insert", "merge", "insert_overwrite"]
|
|
1620
|
-
if
|
|
1582
|
+
if self.behavior.require_batched_execution_for_custom_microbatch_strategy.no_warn:
|
|
1621
1583
|
builtin_strategies.append("microbatch")
|
|
1622
1584
|
|
|
1623
1585
|
return builtin_strategies
|
|
@@ -1825,29 +1787,6 @@ class BaseAdapter(metaclass=AdapterMeta):
|
|
|
1825
1787
|
"""
|
|
1826
1788
|
return {}
|
|
1827
1789
|
|
|
1828
|
-
@available.parse_none
|
|
1829
|
-
@classmethod
|
|
1830
|
-
def get_hard_deletes_behavior(cls, config):
|
|
1831
|
-
"""Check the hard_deletes config enum, and the legacy invalidate_hard_deletes
|
|
1832
|
-
config flag in order to determine which behavior should be used for deleted
|
|
1833
|
-
records in a snapshot. The default is to ignore them."""
|
|
1834
|
-
invalidate_hard_deletes = config.get("invalidate_hard_deletes", None)
|
|
1835
|
-
hard_deletes = config.get("hard_deletes", None)
|
|
1836
|
-
|
|
1837
|
-
if invalidate_hard_deletes is not None and hard_deletes is not None:
|
|
1838
|
-
raise DbtValidationError(
|
|
1839
|
-
"You cannot set both the invalidate_hard_deletes and hard_deletes config properties on the same snapshot."
|
|
1840
|
-
)
|
|
1841
|
-
|
|
1842
|
-
if invalidate_hard_deletes or hard_deletes == "invalidate":
|
|
1843
|
-
return "invalidate"
|
|
1844
|
-
elif hard_deletes == "new_record":
|
|
1845
|
-
return "new_record"
|
|
1846
|
-
elif hard_deletes is None or hard_deletes == "ignore":
|
|
1847
|
-
return "ignore"
|
|
1848
|
-
|
|
1849
|
-
raise DbtValidationError("Invalid setting for property hard_deletes.")
|
|
1850
|
-
|
|
1851
1790
|
|
|
1852
1791
|
COLUMNS_EQUAL_SQL = """
|
|
1853
1792
|
with diff_count as (
|
dbt/adapters/capability.py
CHANGED
|
@@ -21,9 +21,6 @@ class Capability(str, Enum):
|
|
|
21
21
|
"""Indicates support for getting catalog information including table-level and column-level metadata for a single
|
|
22
22
|
relation."""
|
|
23
23
|
|
|
24
|
-
MicrobatchConcurrency = "MicrobatchConcurrency"
|
|
25
|
-
"""Indicates support running the microbatch incremental materialization strategy concurrently across threads."""
|
|
26
|
-
|
|
27
24
|
|
|
28
25
|
class Support(str, Enum):
|
|
29
26
|
Unknown = "Unknown"
|
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
3
|
# source: adapter_types.proto
|
|
5
|
-
# Protobuf Python Version: 5.28.3
|
|
6
4
|
"""Generated protocol buffer code."""
|
|
7
5
|
from google.protobuf import descriptor as _descriptor
|
|
8
6
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
7
|
from google.protobuf import symbol_database as _symbol_database
|
|
11
8
|
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
5,
|
|
15
|
-
28,
|
|
16
|
-
3,
|
|
17
|
-
'',
|
|
18
|
-
'adapter_types.proto'
|
|
19
|
-
)
|
|
20
9
|
# @@protoc_insertion_point(imports)
|
|
21
10
|
|
|
22
11
|
_sym_db = _symbol_database.Default()
|
|
@@ -31,12 +20,13 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x61\x64\x61pt
|
|
|
31
20
|
_globals = globals()
|
|
32
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
22
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'adapter_types_pb2', _globals)
|
|
34
|
-
if
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
+
|
|
25
|
+
DESCRIPTOR._options = None
|
|
26
|
+
_ADAPTERCOMMONEVENTINFO_EXTRAENTRY._options = None
|
|
27
|
+
_ADAPTERCOMMONEVENTINFO_EXTRAENTRY._serialized_options = b'8\001'
|
|
28
|
+
_CACHEDUMPGRAPH_DUMPENTRY._options = None
|
|
29
|
+
_CACHEDUMPGRAPH_DUMPENTRY._serialized_options = b'8\001'
|
|
40
30
|
_globals['_ADAPTERCOMMONEVENTINFO']._serialized_start=100
|
|
41
31
|
_globals['_ADAPTERCOMMONEVENTINFO']._serialized_end=399
|
|
42
32
|
_globals['_ADAPTERCOMMONEVENTINFO_EXTRAENTRY']._serialized_start=355
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
{% endmacro %}
|
|
36
36
|
|
|
37
37
|
{% macro get_snapshot_table_column_names() %}
|
|
38
|
-
{{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at'
|
|
38
|
+
{{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at'}) }}
|
|
39
39
|
{% endmacro %}
|
|
40
40
|
|
|
41
41
|
{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
from snapshot_query
|
|
83
83
|
),
|
|
84
84
|
|
|
85
|
-
{%- if strategy.
|
|
85
|
+
{%- if strategy.invalidate_hard_deletes %}
|
|
86
86
|
|
|
87
87
|
deletes_source_data as (
|
|
88
88
|
|
|
@@ -96,9 +96,6 @@
|
|
|
96
96
|
select
|
|
97
97
|
'insert' as dbt_change_type,
|
|
98
98
|
source_data.*
|
|
99
|
-
{%- if strategy.hard_deletes == 'new_record' -%}
|
|
100
|
-
,'False' as {{ columns.dbt_is_deleted }}
|
|
101
|
-
{%- endif %}
|
|
102
99
|
|
|
103
100
|
from insertions_source_data as source_data
|
|
104
101
|
left outer join snapshotted_data
|
|
@@ -116,9 +113,6 @@
|
|
|
116
113
|
'update' as dbt_change_type,
|
|
117
114
|
source_data.*,
|
|
118
115
|
snapshotted_data.{{ columns.dbt_scd_id }}
|
|
119
|
-
{%- if strategy.hard_deletes == 'new_record' -%}
|
|
120
|
-
, snapshotted_data.{{ columns.dbt_is_deleted }}
|
|
121
|
-
{%- endif %}
|
|
122
116
|
|
|
123
117
|
from updates_source_data as source_data
|
|
124
118
|
join snapshotted_data
|
|
@@ -128,8 +122,9 @@
|
|
|
128
122
|
)
|
|
129
123
|
)
|
|
130
124
|
|
|
131
|
-
{%- if strategy.
|
|
125
|
+
{%- if strategy.invalidate_hard_deletes -%}
|
|
132
126
|
,
|
|
127
|
+
|
|
133
128
|
deletes as (
|
|
134
129
|
|
|
135
130
|
select
|
|
@@ -139,38 +134,7 @@
|
|
|
139
134
|
{{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},
|
|
140
135
|
{{ snapshot_get_time() }} as {{ columns.dbt_valid_to }},
|
|
141
136
|
snapshotted_data.{{ columns.dbt_scd_id }}
|
|
142
|
-
{%- if strategy.hard_deletes == 'new_record' -%}
|
|
143
|
-
, snapshotted_data.{{ columns.dbt_is_deleted }}
|
|
144
|
-
{%- endif %}
|
|
145
|
-
from snapshotted_data
|
|
146
|
-
left join deletes_source_data as source_data
|
|
147
|
-
on {{ unique_key_join_on(strategy.unique_key, "snapshotted_data", "source_data") }}
|
|
148
|
-
where {{ unique_key_is_null(strategy.unique_key, "source_data") }}
|
|
149
|
-
)
|
|
150
|
-
{%- endif %}
|
|
151
|
-
|
|
152
|
-
{%- if strategy.hard_deletes == 'new_record' %}
|
|
153
|
-
{% set source_sql_cols = get_column_schema_from_query(source_sql) %}
|
|
154
|
-
,
|
|
155
|
-
deletion_records as (
|
|
156
137
|
|
|
157
|
-
select
|
|
158
|
-
'insert' as dbt_change_type,
|
|
159
|
-
{%- for col in source_sql_cols -%}
|
|
160
|
-
snapshotted_data.{{ adapter.quote(col.column) }},
|
|
161
|
-
{% endfor -%}
|
|
162
|
-
{%- if strategy.unique_key | is_list -%}
|
|
163
|
-
{%- for key in strategy.unique_key -%}
|
|
164
|
-
snapshotted_data.{{ key }} as dbt_unique_key_{{ loop.index }},
|
|
165
|
-
{% endfor -%}
|
|
166
|
-
{%- else -%}
|
|
167
|
-
snapshotted_data.dbt_unique_key as dbt_unique_key,
|
|
168
|
-
{% endif -%}
|
|
169
|
-
{{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},
|
|
170
|
-
{{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},
|
|
171
|
-
snapshotted_data.{{ columns.dbt_valid_to }} as {{ columns.dbt_valid_to }},
|
|
172
|
-
snapshotted_data.{{ columns.dbt_scd_id }},
|
|
173
|
-
'True' as {{ columns.dbt_is_deleted }}
|
|
174
138
|
from snapshotted_data
|
|
175
139
|
left join deletes_source_data as source_data
|
|
176
140
|
on {{ unique_key_join_on(strategy.unique_key, "snapshotted_data", "source_data") }}
|
|
@@ -181,15 +145,10 @@
|
|
|
181
145
|
select * from insertions
|
|
182
146
|
union all
|
|
183
147
|
select * from updates
|
|
184
|
-
{%- if strategy.
|
|
148
|
+
{%- if strategy.invalidate_hard_deletes %}
|
|
185
149
|
union all
|
|
186
150
|
select * from deletes
|
|
187
151
|
{%- endif %}
|
|
188
|
-
{%- if strategy.hard_deletes == 'new_record' %}
|
|
189
|
-
union all
|
|
190
|
-
select * from deletion_records
|
|
191
|
-
{%- endif %}
|
|
192
|
-
|
|
193
152
|
|
|
194
153
|
{%- endmacro %}
|
|
195
154
|
|
|
@@ -206,9 +165,6 @@
|
|
|
206
165
|
{{ strategy.updated_at }} as {{ columns.dbt_updated_at }},
|
|
207
166
|
{{ strategy.updated_at }} as {{ columns.dbt_valid_from }},
|
|
208
167
|
{{ get_dbt_valid_to_current(strategy, columns) }}
|
|
209
|
-
{%- if strategy.hard_deletes == 'new_record' -%}
|
|
210
|
-
, 'False' as {{ columns.dbt_is_deleted }}
|
|
211
|
-
{% endif -%}
|
|
212
168
|
from (
|
|
213
169
|
{{ sql }}
|
|
214
170
|
) sbq
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
{% set columns = config.get("snapshot_table_column_names") or get_snapshot_table_column_names() %}
|
|
39
39
|
|
|
40
|
-
{{ adapter.
|
|
40
|
+
{{ adapter.valid_snapshot_target(target_relation, columns) }}
|
|
41
41
|
|
|
42
42
|
{% set build_or_select_sql = snapshot_staging_table(strategy, sql, target_relation) %}
|
|
43
43
|
{% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}
|
|
@@ -54,8 +54,7 @@
|
|
|
54
54
|
{# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}
|
|
55
55
|
{% set primary_key = config.get('unique_key') %}
|
|
56
56
|
{% set updated_at = config.get('updated_at') %}
|
|
57
|
-
{% set
|
|
58
|
-
{% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}
|
|
57
|
+
{% set invalidate_hard_deletes = config.get('invalidate_hard_deletes') or false %}
|
|
59
58
|
{% set columns = config.get("snapshot_table_column_names") or get_snapshot_table_column_names() %}
|
|
60
59
|
|
|
61
60
|
{#/*
|
|
@@ -79,8 +78,7 @@
|
|
|
79
78
|
"updated_at": updated_at,
|
|
80
79
|
"row_changed": row_changed_expr,
|
|
81
80
|
"scd_id": scd_id_expr,
|
|
82
|
-
"invalidate_hard_deletes": invalidate_hard_deletes
|
|
83
|
-
"hard_deletes": hard_deletes
|
|
81
|
+
"invalidate_hard_deletes": invalidate_hard_deletes
|
|
84
82
|
}) %}
|
|
85
83
|
{% endmacro %}
|
|
86
84
|
|
|
@@ -143,8 +141,7 @@
|
|
|
143
141
|
{# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}
|
|
144
142
|
{% set check_cols_config = config.get('check_cols') %}
|
|
145
143
|
{% set primary_key = config.get('unique_key') %}
|
|
146
|
-
{% set
|
|
147
|
-
{% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}
|
|
144
|
+
{% set invalidate_hard_deletes = config.get('invalidate_hard_deletes') or false %}
|
|
148
145
|
{% set updated_at = config.get('updated_at') or snapshot_get_time() %}
|
|
149
146
|
|
|
150
147
|
{% set column_added = false %}
|
|
@@ -178,7 +175,6 @@
|
|
|
178
175
|
"updated_at": updated_at,
|
|
179
176
|
"row_changed": row_changed_expr,
|
|
180
177
|
"scd_id": scd_id_expr,
|
|
181
|
-
"invalidate_hard_deletes": invalidate_hard_deletes
|
|
182
|
-
"hard_deletes": hard_deletes
|
|
178
|
+
"invalidate_hard_deletes": invalidate_hard_deletes
|
|
183
179
|
}) %}
|
|
184
180
|
{% endmacro %}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: dbt-adapters
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.11.0
|
|
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
|
|
6
6
|
Project-URL: Documentation, https://docs.getdbt.com
|
|
@@ -21,9 +21,9 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
22
|
Requires-Python: >=3.9.0
|
|
23
23
|
Requires-Dist: agate<2.0,>=1.0
|
|
24
|
-
Requires-Dist: dbt-common<2.0,>=1.
|
|
25
|
-
Requires-Dist: mashumaro[msgpack]<
|
|
26
|
-
Requires-Dist: protobuf<
|
|
24
|
+
Requires-Dist: dbt-common<2.0,>=1.11
|
|
25
|
+
Requires-Dist: mashumaro[msgpack]<4.0,>=3.0
|
|
26
|
+
Requires-Dist: protobuf<5.0,>=3.0
|
|
27
27
|
Requires-Dist: pytz>=2015.7
|
|
28
28
|
Requires-Dist: typing-extensions<5.0,>=4.0
|
|
29
29
|
Description-Content-Type: text/markdown
|
|
@@ -32,7 +32,7 @@ Description-Content-Type: text/markdown
|
|
|
32
32
|
<img src="https://raw.githubusercontent.com/dbt-labs/dbt/ec7dee39f793aa4f7dd3dae37282cc87664813e4/etc/dbt-logo-full.svg" alt="dbt logo" width="500"/>
|
|
33
33
|
</p>
|
|
34
34
|
|
|
35
|
-
# dbt-
|
|
35
|
+
# dbt-tests-adapter
|
|
36
36
|
|
|
37
37
|
This package is responsible for:
|
|
38
38
|
|
|
@@ -40,12 +40,10 @@ This package is responsible for:
|
|
|
40
40
|
- caching information from databases
|
|
41
41
|
- determining how relations are defined
|
|
42
42
|
|
|
43
|
-
In this repo there is also our testing suite used for tesing adapter functionality
|
|
44
|
-
|
|
45
|
-
# Adapters
|
|
46
|
-
|
|
47
43
|
There are two major adapter types: base and sql
|
|
48
44
|
|
|
45
|
+
# Directories
|
|
46
|
+
|
|
49
47
|
## `base`
|
|
50
48
|
|
|
51
49
|
Defines the base implementation Adapters can use to build out full functionality.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
dbt/__init__.py,sha256=iY4jdvOxcDhkdr5FiyOTZPHadKtMZDQ-qC6Fw6_EHPM,277
|
|
2
|
-
dbt/adapters/__about__.py,sha256=
|
|
2
|
+
dbt/adapters/__about__.py,sha256=mD8RxZIPreXVMDcN4OLaJBmakjmOUITJu4JM34eJwD8,19
|
|
3
3
|
dbt/adapters/__init__.py,sha256=3noHsg-64qI0_Pw6OR9F7l1vU2_qrJvinq8POTtuaZM,252
|
|
4
4
|
dbt/adapters/cache.py,sha256=WGy4ewnz-J13LverTACBW2iFhGswrWLgm-wiBrQnMzo,20084
|
|
5
|
-
dbt/adapters/capability.py,sha256
|
|
5
|
+
dbt/adapters/capability.py,sha256=-Mbej2AL_bjQatHpFWUgsQ8z0zwnotyE9Y5DYHnX7NE,2364
|
|
6
6
|
dbt/adapters/factory.py,sha256=9N-LjTnyqBKqK7KARjJdAPdQIRXQbVRfd2cBNDtU4Dc,9378
|
|
7
7
|
dbt/adapters/protocol.py,sha256=qRsEFAKjUMVnoBspAiCUTICez1ckson-dFS04dTXSco,3818
|
|
8
8
|
dbt/adapters/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -12,7 +12,7 @@ dbt/adapters/base/README.md,sha256=muHQntC07Lh6L1XfVgwKhV5RltOPBLYPdQqd8_7l34c,5
|
|
|
12
12
|
dbt/adapters/base/__init__.py,sha256=Nc8lQVkOzAqdcxk4cw4E_raxN9CAWMwhQx4STdiicxg,456
|
|
13
13
|
dbt/adapters/base/column.py,sha256=Uj20UixoxCn2rlv4QDNONyys6CDkDFyG3anCXKf0T2c,5350
|
|
14
14
|
dbt/adapters/base/connections.py,sha256=-C5dOwGgMKH8n_v6wjwOxV7chBdS0GjOGwNQCUbhhWc,16951
|
|
15
|
-
dbt/adapters/base/impl.py,sha256=
|
|
15
|
+
dbt/adapters/base/impl.py,sha256=IFu1rQkT-eLjosQ2wJOykWp4iBgppEH4smd3ASA8v5w,72501
|
|
16
16
|
dbt/adapters/base/meta.py,sha256=IKqviGf7gK_qGtrn0t8NaSdUaw8g_M8SjICacMvNwGY,5702
|
|
17
17
|
dbt/adapters/base/plugin.py,sha256=rm0GjNHnWM2mn0GJOjciZLwn-02xlzWCoMT9u-epwP0,1076
|
|
18
18
|
dbt/adapters/base/query_headers.py,sha256=UluGd9IYCYkoMiDi5Yx_lnrCOSjWppjwRro4SIGgx8I,3496
|
|
@@ -26,7 +26,7 @@ dbt/adapters/contracts/relation.py,sha256=H_IYxRtg9LV8kYAfAiWeQAf-2ByMRN-EkfxHim
|
|
|
26
26
|
dbt/adapters/events/README.md,sha256=kVUFIsDQrHTUmk9Mmu-yXYkWh4pA5MJK_H6739rQr5I,3521
|
|
27
27
|
dbt/adapters/events/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
28
|
dbt/adapters/events/adapter_types.proto,sha256=Cjs_XEZFGlKDj_dGbtjSUcAuXm6jRBRMnZEXHCQd5-I,9673
|
|
29
|
-
dbt/adapters/events/adapter_types_pb2.py,sha256=
|
|
29
|
+
dbt/adapters/events/adapter_types_pb2.py,sha256=HCk8PoldHIsAC5zLfcRr0gmIeNey7N9e8s-5NZ24CJk,26471
|
|
30
30
|
dbt/adapters/events/base_types.py,sha256=sTlNRl15GaRIrIDVxalf7sK08dfo3Ol1Ua2jbFO7-7c,966
|
|
31
31
|
dbt/adapters/events/logging.py,sha256=1nRFswQubgUrVHL5DB9ewBtbEv1-OcIXC7mMmu3NOaM,2350
|
|
32
32
|
dbt/adapters/events/types.py,sha256=nW7_FgrEmWlM-HWPHrYcJ5K5QLZtfspLizyqlXrJaoE,12189
|
|
@@ -94,10 +94,10 @@ dbt/include/global_project/macros/materializations/models/incremental/on_schema_
|
|
|
94
94
|
dbt/include/global_project/macros/materializations/models/incremental/strategies.sql,sha256=ORGWiYfj-b3_VIps9FDlyx-Q4A2hZzX2aYLocW8b6pU,2613
|
|
95
95
|
dbt/include/global_project/macros/materializations/seeds/helpers.sql,sha256=Y15ej-D3gm1ExIOMNT208q43gRk8d985WQBuGSooNL0,3920
|
|
96
96
|
dbt/include/global_project/macros/materializations/seeds/seed.sql,sha256=YSoGzVO3iIUiOKIUM9G7yApGLFH4O9bv_d4KjHo3p4Q,2155
|
|
97
|
-
dbt/include/global_project/macros/materializations/snapshots/helpers.sql,sha256=
|
|
98
|
-
dbt/include/global_project/macros/materializations/snapshots/snapshot.sql,sha256=
|
|
97
|
+
dbt/include/global_project/macros/materializations/snapshots/helpers.sql,sha256=h7VuSOq7gYwh2G2sh16AjP-57SsDG1M_ail22RNHAOk,8550
|
|
98
|
+
dbt/include/global_project/macros/materializations/snapshots/snapshot.sql,sha256=zxFMzo9MHii__ciSOGSoUT3dtBmSqHjtkIc9xah8axw,4011
|
|
99
99
|
dbt/include/global_project/macros/materializations/snapshots/snapshot_merge.sql,sha256=-uCvd2_E4AfWWEBRyQLiGCpuHgOG-MczlbLIWyGfAzM,1287
|
|
100
|
-
dbt/include/global_project/macros/materializations/snapshots/strategies.sql,sha256=
|
|
100
|
+
dbt/include/global_project/macros/materializations/snapshots/strategies.sql,sha256=5NB6nHW6qi-IcSf-ALwokTKHfOfV5Hzz4tGotgrV7JA,6746
|
|
101
101
|
dbt/include/global_project/macros/materializations/tests/helpers.sql,sha256=rxUxDZm4EvrDbi0H_ePghE34_QLmxGEY2o_LTMc9CU0,1731
|
|
102
102
|
dbt/include/global_project/macros/materializations/tests/test.sql,sha256=Rz3O_3dWHlIofG3d2CwsP2bXFimRZUIwOevyB0iz1J4,1831
|
|
103
103
|
dbt/include/global_project/macros/materializations/tests/unit.sql,sha256=KonePuFfwcz5uJ-JW0CrEy8_q-Gl45fonngGmFvQcNU,1252
|
|
@@ -157,7 +157,7 @@ dbt/include/global_project/macros/utils/right.sql,sha256=EwNG98CAFIwNDmarwopf7Rk
|
|
|
157
157
|
dbt/include/global_project/macros/utils/safe_cast.sql,sha256=1mswwkDACmIi1I99JKb_-vq3kjMe4HhMRV70mW8Bt4Y,298
|
|
158
158
|
dbt/include/global_project/macros/utils/split_part.sql,sha256=fXEIS0oIiYR7-4lYbb0QbZdG-q2TpV63AFd1ky4I5UM,714
|
|
159
159
|
dbt/include/global_project/tests/generic/builtin.sql,sha256=p94xdyPwb2TlxgLBqCfrcRfJ1QNgsjPvBm8f0Q5eqZM,1022
|
|
160
|
-
dbt_adapters-1.
|
|
161
|
-
dbt_adapters-1.
|
|
162
|
-
dbt_adapters-1.
|
|
163
|
-
dbt_adapters-1.
|
|
160
|
+
dbt_adapters-1.11.0.dist-info/METADATA,sha256=KDzBUhhSZK_DBdJWz5CEDcZFLHmTXmHC5K679nlBx48,2477
|
|
161
|
+
dbt_adapters-1.11.0.dist-info/WHEEL,sha256=3U_NnUcV_1B1kPkYaPzN-irRckL5VW_lytn0ytO_kRY,87
|
|
162
|
+
dbt_adapters-1.11.0.dist-info/licenses/LICENSE,sha256=9yjigiJhWcCZvQjdagGKDwrRph58QWc5P2bVSQwXo6s,11344
|
|
163
|
+
dbt_adapters-1.11.0.dist-info/RECORD,,
|
|
File without changes
|