dbt-adapters 1.1.0rc2__py3-none-any.whl → 1.1.1__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/contracts/connection.py +1 -1
- dbt/include/global_project/macros/utils/date.sql +10 -0
- {dbt_adapters-1.1.0rc2.dist-info → dbt_adapters-1.1.1.dist-info}/METADATA +1 -1
- {dbt_adapters-1.1.0rc2.dist-info → dbt_adapters-1.1.1.dist-info}/RECORD +7 -6
- {dbt_adapters-1.1.0rc2.dist-info → dbt_adapters-1.1.1.dist-info}/WHEEL +0 -0
- {dbt_adapters-1.1.0rc2.dist-info → dbt_adapters-1.1.1.dist-info}/licenses/LICENSE +0 -0
dbt/adapters/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "1.1.
|
|
1
|
+
version = "1.1.1"
|
|
@@ -170,7 +170,7 @@ class Credentials(ExtensibleDbtClassMixin, Replaceable, metaclass=abc.ABCMeta):
|
|
|
170
170
|
def translate_aliases(cls, kwargs: Dict[str, Any], recurse: bool = False) -> Dict[str, Any]:
|
|
171
171
|
return translate_aliases(kwargs, cls._ALIASES, recurse)
|
|
172
172
|
|
|
173
|
-
def __post_serialize__(self, dct):
|
|
173
|
+
def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None):
|
|
174
174
|
# no super() -- do we need it?
|
|
175
175
|
if self._ALIASES:
|
|
176
176
|
dct.update(
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{% macro date(year, month, day) %}
|
|
2
|
+
{{ return(adapter.dispatch('date', 'dbt') (year, month, day)) }}
|
|
3
|
+
{% endmacro %}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
{% macro default__date(year, month, day) -%}
|
|
7
|
+
{%- set dt = modules.datetime.date(year, month, day) -%}
|
|
8
|
+
{%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%}
|
|
9
|
+
to_date('{{ iso_8601_formatted_date }}', 'YYYY-MM-DD')
|
|
10
|
+
{%- endmacro %}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: dbt-adapters
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.1
|
|
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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
dbt/__init__.py,sha256=iY4jdvOxcDhkdr5FiyOTZPHadKtMZDQ-qC6Fw6_EHPM,277
|
|
2
|
-
dbt/adapters/__about__.py,sha256=
|
|
2
|
+
dbt/adapters/__about__.py,sha256=hwx6OSEBgEPc7vR6kpTxsJ6hDXFzuhnwb4l8Erfs5hk,18
|
|
3
3
|
dbt/adapters/__init__.py,sha256=3noHsg-64qI0_Pw6OR9F7l1vU2_qrJvinq8POTtuaZM,252
|
|
4
4
|
dbt/adapters/cache.py,sha256=WGy4ewnz-J13LverTACBW2iFhGswrWLgm-wiBrQnMzo,20084
|
|
5
5
|
dbt/adapters/capability.py,sha256=mIAZwwKetWpG71pg9oofwOeOTTrDYrtKoWwhbtVQOmE,2160
|
|
@@ -20,7 +20,7 @@ dbt/adapters/base/relation.py,sha256=r6phmxz4Uu3JG3Kxh_GUstA1NyBaiAA57u3yKTKSv80
|
|
|
20
20
|
dbt/adapters/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
21
|
dbt/adapters/clients/jinja.py,sha256=NsZOiBpOLunS46hRL5OcX1MpY3Ih6_87Vgz4qd_PNbc,768
|
|
22
22
|
dbt/adapters/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
|
-
dbt/adapters/contracts/connection.py,sha256=
|
|
23
|
+
dbt/adapters/contracts/connection.py,sha256=nkqIRpJqO0sB2aMrJ_hTPPQOe-jL3se__ppAoCNYiOA,6898
|
|
24
24
|
dbt/adapters/contracts/macros.py,sha256=NYVDi5ww7v4ksKBwF836TXE-2xU4IBaUINqvxMY-ieU,366
|
|
25
25
|
dbt/adapters/contracts/relation.py,sha256=EHRHUfI50YpTiw2P4ZsQXp9aVtzdIcnlCC5Px--ytio,4636
|
|
26
26
|
dbt/adapters/events/README.md,sha256=kVUFIsDQrHTUmk9Mmu-yXYkWh4pA5MJK_H6739rQr5I,3521
|
|
@@ -128,6 +128,7 @@ dbt/include/global_project/macros/utils/cast.sql,sha256=YQRXZEIvrXDDs4sqvFCJk7a9
|
|
|
128
128
|
dbt/include/global_project/macros/utils/cast_bool_to_text.sql,sha256=fOIW7AM7_BJIHU5GnhwMYGghh8mvkc27_sqdW0rdszQ,242
|
|
129
129
|
dbt/include/global_project/macros/utils/concat.sql,sha256=qHrVhra5QSwBskYYCpaeJvsCAIFZ_eyeF4h3kgjs8B0,186
|
|
130
130
|
dbt/include/global_project/macros/utils/data_types.sql,sha256=Rw6xhK02NB9TlKolqyGcUGoWgHBkKPpJ1Xh3FOBxrMc,4416
|
|
131
|
+
dbt/include/global_project/macros/utils/date.sql,sha256=-QVwNPMsxN_OJZ5h4YUxoBP_gZLxEIKHR5zkstPvhXI,366
|
|
131
132
|
dbt/include/global_project/macros/utils/date_spine.sql,sha256=to62irsceR0IjA452TfUq0LgKJd6zEheA7pi-xlThr4,1707
|
|
132
133
|
dbt/include/global_project/macros/utils/date_trunc.sql,sha256=N7eDEgKVq6BQ9qUeIMJ_yKQv5QTjIWZ6k2oMWeGlqQU,234
|
|
133
134
|
dbt/include/global_project/macros/utils/dateadd.sql,sha256=-t0IDuV01WOMNsuPjyBp9D-2uvJAdhgi3kE8JIL9Jhc,374
|
|
@@ -147,7 +148,7 @@ dbt/include/global_project/macros/utils/right.sql,sha256=EwNG98CAFIwNDmarwopf7Rk
|
|
|
147
148
|
dbt/include/global_project/macros/utils/safe_cast.sql,sha256=1mswwkDACmIi1I99JKb_-vq3kjMe4HhMRV70mW8Bt4Y,298
|
|
148
149
|
dbt/include/global_project/macros/utils/split_part.sql,sha256=fXEIS0oIiYR7-4lYbb0QbZdG-q2TpV63AFd1ky4I5UM,714
|
|
149
150
|
dbt/include/global_project/tests/generic/builtin.sql,sha256=p94xdyPwb2TlxgLBqCfrcRfJ1QNgsjPvBm8f0Q5eqZM,1022
|
|
150
|
-
dbt_adapters-1.1.
|
|
151
|
-
dbt_adapters-1.1.
|
|
152
|
-
dbt_adapters-1.1.
|
|
153
|
-
dbt_adapters-1.1.
|
|
151
|
+
dbt_adapters-1.1.1.dist-info/METADATA,sha256=9y-fGUNQ3z3cDF0d_r3gz0LgsB2DL6hQSdWxVQ5RTgU,2533
|
|
152
|
+
dbt_adapters-1.1.1.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
|
153
|
+
dbt_adapters-1.1.1.dist-info/licenses/LICENSE,sha256=9yjigiJhWcCZvQjdagGKDwrRph58QWc5P2bVSQwXo6s,11344
|
|
154
|
+
dbt_adapters-1.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|