dbt-adapters 1.14.4__py3-none-any.whl → 1.14.5__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/include/global_project/macros/materializations/models/incremental/incremental.sql +7 -4
- dbt/include/global_project/macros/materializations/models/table.sql +2 -2
- {dbt_adapters-1.14.4.dist-info → dbt_adapters-1.14.5.dist-info}/METADATA +1 -1
- {dbt_adapters-1.14.4.dist-info → dbt_adapters-1.14.5.dist-info}/RECORD +7 -7
- {dbt_adapters-1.14.4.dist-info → dbt_adapters-1.14.5.dist-info}/WHEEL +0 -0
- {dbt_adapters-1.14.4.dist-info → dbt_adapters-1.14.5.dist-info}/licenses/LICENSE +0 -0
dbt/adapters/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "1.14.
|
|
1
|
+
version = "1.14.5"
|
|
@@ -37,11 +37,14 @@
|
|
|
37
37
|
|
|
38
38
|
{% if existing_relation is none %}
|
|
39
39
|
{% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}
|
|
40
|
+
{% set relation_for_indexes = target_relation %}
|
|
40
41
|
{% elif full_refresh_mode %}
|
|
41
42
|
{% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}
|
|
43
|
+
{% set relation_for_indexes = intermediate_relation %}
|
|
42
44
|
{% set need_swap = true %}
|
|
43
45
|
{% else %}
|
|
44
46
|
{% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}
|
|
47
|
+
{% set relation_for_indexes = temp_relation %}
|
|
45
48
|
{% set contract_config = config.get('contract') %}
|
|
46
49
|
{% if not contract_config or not contract_config.enforced %}
|
|
47
50
|
{% do adapter.expand_target_column_types(
|
|
@@ -65,6 +68,10 @@
|
|
|
65
68
|
{{ build_sql }}
|
|
66
69
|
{% endcall %}
|
|
67
70
|
|
|
71
|
+
{% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}
|
|
72
|
+
{% do create_indexes(relation_for_indexes) %}
|
|
73
|
+
{% endif %}
|
|
74
|
+
|
|
68
75
|
{% if need_swap %}
|
|
69
76
|
{% do adapter.rename_relation(target_relation, backup_relation) %}
|
|
70
77
|
{% do adapter.rename_relation(intermediate_relation, target_relation) %}
|
|
@@ -76,10 +83,6 @@
|
|
|
76
83
|
|
|
77
84
|
{% do persist_docs(target_relation, model) %}
|
|
78
85
|
|
|
79
|
-
{% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}
|
|
80
|
-
{% do create_indexes(target_relation) %}
|
|
81
|
-
{% endif %}
|
|
82
|
-
|
|
83
86
|
{{ run_hooks(post_hooks, inside_transaction=True) }}
|
|
84
87
|
|
|
85
88
|
-- `COMMIT` happens here
|
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
{{ get_create_table_as_sql(False, intermediate_relation, sql) }}
|
|
32
32
|
{%- endcall %}
|
|
33
33
|
|
|
34
|
+
{% do create_indexes(intermediate_relation) %}
|
|
35
|
+
|
|
34
36
|
-- cleanup
|
|
35
37
|
{% if existing_relation is not none %}
|
|
36
38
|
/* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped
|
|
@@ -43,8 +45,6 @@
|
|
|
43
45
|
|
|
44
46
|
{{ adapter.rename_relation(intermediate_relation, target_relation) }}
|
|
45
47
|
|
|
46
|
-
{% do create_indexes(target_relation) %}
|
|
47
|
-
|
|
48
48
|
{{ run_hooks(post_hooks, inside_transaction=True) }}
|
|
49
49
|
|
|
50
50
|
{% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dbt-adapters
|
|
3
|
-
Version: 1.14.
|
|
3
|
+
Version: 1.14.5
|
|
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=AIt5aH02ti9F82WLsPO70LkVXsCcTpEBTRATsLBO1Mw,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
|
|
@@ -86,13 +86,13 @@ dbt/include/global_project/macros/get_custom_name/get_custom_schema.sql,sha256=2
|
|
|
86
86
|
dbt/include/global_project/macros/materializations/configs.sql,sha256=aciTDXFQoiAU4y8nsreTQnSca18P2tjURx-LQIrzyuc,627
|
|
87
87
|
dbt/include/global_project/macros/materializations/hooks.sql,sha256=IIOLRanrLtpYcWxWPaPJ7JMoyJdQJicEDni4yoE9mJI,994
|
|
88
88
|
dbt/include/global_project/macros/materializations/models/materialized_view.sql,sha256=-u0cGQrHEMBt8coXfKKPpUQJS97TX3QRafV873fqeCA,5029
|
|
89
|
-
dbt/include/global_project/macros/materializations/models/table.sql,sha256=
|
|
89
|
+
dbt/include/global_project/macros/materializations/models/table.sql,sha256=F9ogmZofhPdzKwhhFJ_GfI5QRXQxLjTl6xTiCgulQ9g,2682
|
|
90
90
|
dbt/include/global_project/macros/materializations/models/view.sql,sha256=LPqM3aTsWiAalFz322aTpqKqCdl4hxN8ubcwXZIIDDw,3249
|
|
91
91
|
dbt/include/global_project/macros/materializations/models/clone/can_clone_table.sql,sha256=YVq2f574IxMDuEv5rbaTvUpLLqc-jQfyOgBQJQGWcmk,187
|
|
92
92
|
dbt/include/global_project/macros/materializations/models/clone/clone.sql,sha256=X85U0zwq_OINxeZ7JDer9i3BgQZvgGM-tKTvITrQx5s,2716
|
|
93
93
|
dbt/include/global_project/macros/materializations/models/clone/create_or_replace_clone.sql,sha256=qr33DwFOpRG0wGVsGvr63-MexYMNZC9xKdGOPmICp_c,367
|
|
94
94
|
dbt/include/global_project/macros/materializations/models/incremental/column_helpers.sql,sha256=hslQlGKW0oW97srfugsFVRR-L6RrzRcnwr3uLhzI0X4,2577
|
|
95
|
-
dbt/include/global_project/macros/materializations/models/incremental/incremental.sql,sha256=
|
|
95
|
+
dbt/include/global_project/macros/materializations/models/incremental/incremental.sql,sha256=yOG-Rsv_j6JhGIHdfFk77_DoILFgFqsLN27R5LdCnZM,4546
|
|
96
96
|
dbt/include/global_project/macros/materializations/models/incremental/is_incremental.sql,sha256=Sm1TqOeqcCQofj3REFcA97yukPB1J_mClDd55r5GewE,478
|
|
97
97
|
dbt/include/global_project/macros/materializations/models/incremental/merge.sql,sha256=hrOgfAE3Aam0srudb0CgHZaAUFBnIXMAndoOncYP3T8,4840
|
|
98
98
|
dbt/include/global_project/macros/materializations/models/incremental/on_schema_change.sql,sha256=EOgcrYhwOGVPnyaBu7kIfe8LTOYVOu-AhxMtBs8ETpQ,4927
|
|
@@ -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.5.dist-info/METADATA,sha256=le7gPuDjXmyWFD2JzXb9OXq4hFHD6i4VdI-UUbN4WKk,4494
|
|
167
|
+
dbt_adapters-1.14.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
168
|
+
dbt_adapters-1.14.5.dist-info/licenses/LICENSE,sha256=9yjigiJhWcCZvQjdagGKDwrRph58QWc5P2bVSQwXo6s,11344
|
|
169
|
+
dbt_adapters-1.14.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|