Skip to content

Releases: dbt-labs/dbt_metrics

The 2022 Coalesce Pre-Release

04 Oct 19:49
adbdc73

Choose a tag to compare

Pre-release

Breaking Changes

  • Updating the package to reflect the changes in the v1.3 metric spec.
    • type --> calculation_method
    • sql --> expression
    • type: expression --> calculation_method: derived
  • Updating the required_dbt_version to be v1.3

New Features

  • Adding functionality to return a single value for a metric by using all_time in the time_grains by @callum-mcdata in #99
  • Adding a new metric_list input to secondary calculations to allow for flexibility in which metric the secondary calculation is being applied to. By @callum-mcdata in #116
  • Making develop have feature parity with calculate! You can now query any metrics defined in the provided yml, even if they are derived metrics. By @callum-mcdata in #118
  • Allow users to override the default method for handling null values. Default behavior replaces null values with 0 - now there is a config to keep as null. Shout out to @dave-connors-3 taking on a bear of a PR . #96
  • Adding the ability to define a window in the metric definition and have that be applied in the calculation. More information in the readme. By @callum-mcdata in #104

Quality of Life Changes

  • The 👑 @dave-connors-3 cleaning up the whitespace in the compiled query so it can actually be read by humans! #94
  • Restructuring the metrics in the package for code consistency and to remove branching paths based on different behaviors/inputs. #90
  • Adding default ordering to the final returned dataset where the most recent metric value is first! #119
  • Updating packages.yml by @callum-mcdata in #122

Bug Fixes

Full Changelog: 0.3.2...1.3.0

0.3.6 - Limiting dbt-core versions

03 Oct 20:46
c0b0556

Choose a tag to compare

What's Changed

  • This version is the final in the 0.3 series and limits the accepted dbt-core version to [">=1.2.0", "<1.3.0"]

PRs

Full Changelog: 0.3.5...0.3.6

0.3.5 - Adding Order By and Fixing Base Model Bug

26 Sep 20:29
e94f9ec

Choose a tag to compare

What's Changed

Full Changelog: 0.3.4...0.3.5

0.3.4 - Adding `metric_list` to secondary calculations!

21 Sep 16:31

Choose a tag to compare

What's Changed

Full Changelog: 0.3.3...0.3.4

0.3.3 - Hotfixing Date Bug

20 Sep 02:29
3b87227

Choose a tag to compare

What's Changed

Full Changelog: 0.3.2...0.3.3

Deploy Macro, Removing Introspection, & Calendar Extension

23 Aug 22:38
e5317f4

Choose a tag to compare

Lets Celebrate Our New Contributors!!

What's Changed

Full Changelog: 0.3.1...0.3.2

0.3.1 - Hotfixes and Implementing CI

02 Aug 16:30
f9096e2

Choose a tag to compare

What's Changed

Full Changelog: 0.3.0...0.3.1

0.3.0 - Expression Metrics & Refactoring

27 Jul 14:18
9baf73d

Choose a tag to compare

What's Changed

Full Changelog: 0.2.0...0.3.0

0.2.0

13 Jun 13:16
961f31f

Choose a tag to compare

Description

BREAKING CHANGE - The custom_calendar variable now takes the name of the model, not the ref function that it previously had. For more information, please reference the README.

What's Changed

New Contributors

Full Changelog: 0.1.5...0.2.0

0.1.5

22 Mar 00:07
39ebdae

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.1.4...0.1.5