From 3aba80e4e0c93d3395d681d2caf776bb24df9d41 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Mon, 13 May 2024 17:33:31 -0600 Subject: [PATCH] Cross-database `date` macro (#81) Co-authored-by: Colin Rogers <111200756+colin-rogers-dbt@users.noreply.github.com> --- .changes/unreleased/Features-20240501-151856.yaml | 6 ++++++ tests/functional/shared_tests/test_utils.py | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 .changes/unreleased/Features-20240501-151856.yaml diff --git a/.changes/unreleased/Features-20240501-151856.yaml b/.changes/unreleased/Features-20240501-151856.yaml new file mode 100644 index 00000000..2dda7193 --- /dev/null +++ b/.changes/unreleased/Features-20240501-151856.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Cross-database `date` macro +time: 2024-05-01T15:18:56.758715-06:00 +custom: + Author: dbeatty10 + Issue: 82 diff --git a/tests/functional/shared_tests/test_utils.py b/tests/functional/shared_tests/test_utils.py index 9934a240..3811638a 100644 --- a/tests/functional/shared_tests/test_utils.py +++ b/tests/functional/shared_tests/test_utils.py @@ -8,6 +8,7 @@ from dbt.tests.adapter.utils.test_cast_bool_to_text import BaseCastBoolToText from dbt.tests.adapter.utils.test_concat import BaseConcat from dbt.tests.adapter.utils.test_current_timestamp import BaseCurrentTimestampAware +from dbt.tests.adapter.utils.test_date import BaseDate from dbt.tests.adapter.utils.test_dateadd import BaseDateAdd from dbt.tests.adapter.utils.test_datediff import BaseDateDiff from dbt.tests.adapter.utils.test_date_spine import BaseDateSpine @@ -69,6 +70,10 @@ class TestCurrentTimestamp(BaseCurrentTimestampAware): pass +class TestDate(BaseDate): + pass + + class TestDateSpine(BaseDateSpine): pass