You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+54-52
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,6 @@
4
4
5
5
Extension package for [**dbt**](https://github.com/dbt-labs/dbt) to handle date logic and calendar functionality.
6
6
7
-
FYI: this package includes [**dbt-utils**](https://github.com/dbt-labs/dbt-utils) so there"s no need to also import dbt-utils in your local project. (In fact, you may get an error if you do.)
8
-
9
7
Include in `packages.yml`
10
8
11
9
```yaml
@@ -15,7 +13,13 @@ packages:
15
13
# <see https://github.com/calogica/dbt-date/releases/latest> for the latest version tag
16
14
```
17
15
18
-
Note: we no longer include `spark_utils` in this package to avoid versioning conflicts. If you are running this package on non-core (Snowflake, BigQuery, Redshift, Postgres) platforms, you will need to use a package like `spark_utils` to shim macros.
16
+
This package supports:
17
+
18
+
* Postgres
19
+
* Snowflake
20
+
* BigQuery
21
+
22
+
For other platforms, you will have to include a shim package for the platform, such as `spark-utils`, or `tsql-utils`.
19
23
20
24
For example, in `packages.yml`, you will need to include the relevant package:
21
25
@@ -43,65 +47,54 @@ vars:
43
47
You may specify [any valid timezone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) in place of `America/Los_Angeles`.
44
48
For example, use `America/New_York` for East Coast Time.
45
49
46
-
## Integration Tests (Developers Only)
47
-
48
-
This project contains integration tests for all test macros in a separate `integration_tests` dbt project contained in this repo.
49
-
50
-
To run the tests:
51
-
52
-
1. You will need a profile called `integration_tests` in `~/.dbt/profiles.yml` pointing to a writable database. We only support postgres, BigQuery and Snowflake.
53
-
2. Then, from within the `integration_tests` folder, run `dbt build` to run the test models in `integration_tests/models/schema_tests/` and run the tests specified in `integration_tests/models/schema_tests/schema.yml`
@@ -801,3 +794,12 @@ or, optionally, you can override the default timezone:
801
794
```sql
802
795
{{ dbt_date.yesterday(tz="America/New_York") }} as date_yesterday
803
796
```
797
+
798
+
## Integration Tests (Developers Only)
799
+
800
+
This project contains integration tests for all test macros in a separate `integration_tests` dbt project contained in this repo.
801
+
802
+
To run the tests:
803
+
804
+
1. You will need a profile called `integration_tests` in `~/.dbt/profiles.yml` pointing to a writable database. We only support postgres, BigQuery and Snowflake.
805
+
2. Then, from within the `integration_tests` folder, run `dbt build` to run the test models in `integration_tests/models/schema_tests/` and run the tests specified in `integration_tests/models/schema_tests/schema.yml`
0 commit comments