From 3a4da562c7b2e9cf9c1fe5496a9ba462fe244ee4 Mon Sep 17 00:00:00 2001 From: Claire Carroll Date: Thu, 13 May 2021 10:19:58 -0400 Subject: [PATCH] Small tidy to docs (#363) * Note dbt version requirement in changelog * Reorg folders based on contents doc --- CHANGELOG.md | 4 +++- README.md | 4 ++-- macros/{datetime => sql}/date_spine.sql | 0 macros/{geo => sql}/haversine_distance.sql | 0 4 files changed, 5 insertions(+), 3 deletions(-) rename macros/{datetime => sql}/date_spine.sql (100%) rename macros/{geo => sql}/haversine_distance.sql (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index aab0e134..751d2067 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ -# dbt-utils v0.7.0 (unreleased) +# dbt-utils v0.7.0 ## :rotating_light: Breaking changes +### dbt v0.19.0 +This package now includes some functionality that requires dbt v0.19.0 or greater. You'll need to make sure your project is using 0.19.0 before upgrading your dbt-utils version. ### get_column_values The order of (optional) arguments has changed in the `get_column_values` macro: diff --git a/README.md b/README.md index 9b465cd3..9c24f76e 100644 --- a/README.md +++ b/README.md @@ -685,7 +685,7 @@ group by 1 --- ### SQL generators These macros generate SQL (either a complete query, or a part of a query). They often implement patterns that should be easy in SQL, but for some reason are much harder than they need to be. -#### date_spine ([source](macros/datetime/date_spine.sql)) +#### date_spine ([source](macros/sql/date_spine.sql)) This macro returns the sql required to build a table of all days / months / years (often referred to as a "date spine" table). The spine will include the `start_date` (if it is aligned to the `datepart`), but it will not include the `end_date`. **Usage:** @@ -709,7 +709,7 @@ This would return a table like so: | 2021-12-31 | -#### haversine_distance ([source](macros/geo/haversine_distance.sql)) +#### haversine_distance ([source](macros/sql/haversine_distance.sql)) This macro calculates the [haversine distance](http://daynebatten.com/2015/09/latitude-longitude-distance-sql/) between a pair of x/y coordinates. **Usage:** diff --git a/macros/datetime/date_spine.sql b/macros/sql/date_spine.sql similarity index 100% rename from macros/datetime/date_spine.sql rename to macros/sql/date_spine.sql diff --git a/macros/geo/haversine_distance.sql b/macros/sql/haversine_distance.sql similarity index 100% rename from macros/geo/haversine_distance.sql rename to macros/sql/haversine_distance.sql