diff --git a/.changes/0.203.0.md b/.changes/0.203.0.md new file mode 100644 index 0000000000..1575587269 --- /dev/null +++ b/.changes/0.203.0.md @@ -0,0 +1,48 @@ +## MetricFlow 0.203.0 - November 13, 2023 + +### Breaking Changes + +- Use FULL OUTER JOIN to combine input metrics for derived metrics. This is a change from using INNER JOIN and may result in changes in output. ([#842](https://github.com/dbt-labs/metricflow/issues/842)) +- Update Dependencies to Use `dbt-semantic-interfaces~=0.4.0` ([#846](https://github.com/dbt-labs/metricflow/issues/846)) + +### Features + +- Enable DATE PART aggregation for time dimensions ([#770](https://github.com/dbt-labs/metricflow/issues/770)) +- Support Saved Queries in MetricFlow ([#765](https://github.com/dbt-labs/metricflow/issues/765)) +- Support for sort order in query interface ([#None](https://github.com/dbt-labs/metricflow/issues/None)) +- Support for the Dimension(...).grain(...) syntax for the where parameter ([#None](https://github.com/dbt-labs/metricflow/issues/None)) +- Support querying dimensions without metrics. ([#804](https://github.com/dbt-labs/metricflow/issues/804)) +- Join to time spine and fill nulls when requested on metric input measures. ([#759](https://github.com/dbt-labs/metricflow/issues/759)) +- Fill nulls for multi-metric queries ([#850](https://github.com/dbt-labs/metricflow/issues/850)) + +### Fixes + +- Removing methods and reordering parameters for Query Interface. ([#None](https://github.com/dbt-labs/metricflow/issues/None)) +- Coerce time granularity to configured value to prevent finer-grained timestamps from causing unexpected query behavior ([#714](https://github.com/dbt-labs/metricflow/issues/714)) +- Prioritize source nodes based on correct cost ([#801](https://github.com/dbt-labs/metricflow/issues/801)) +- Enables case insensitivity for various query params. ([#802](https://github.com/dbt-labs/metricflow/issues/802)) +- Ensure extract calls return consistent results across engines ([#792](https://github.com/dbt-labs/metricflow/issues/792)) +- The --order param was being dropped from CLI saved queries. ([#835](https://github.com/dbt-labs/metricflow/issues/835)) +- Fix query validation for metric_time requirements ([#825](https://github.com/dbt-labs/metricflow/issues/825)) + +### Under the Hood + +- A simple update to make the where filter query parameter objects more accurate ([#None](https://github.com/dbt-labs/metricflow/issues/None)) +- Expose underlying where clause error message ([#None](https://github.com/dbt-labs/metricflow/issues/None)) +- Remove query interface and depend on DSI protocol instead ([#None](https://github.com/dbt-labs/metricflow/issues/None)) +- re-categorize `TypeErrors` that arise from `create_from_where_filter` into `InvalidQueryException` ([#None](https://github.com/dbt-labs/metricflow/issues/None)) +- Add the ability to use distinct select in sql nodes ([#None](https://github.com/dbt-labs/metricflow/issues/None)) +- Removed DatePart Enum and change imports to depend on DSI version instead. ([#None](https://github.com/dbt-labs/metricflow/issues/None)) + +### Dependencies + +- Update to dbt-semantic-interfaces~=0.3.0. ([#809](https://github.com/dbt-labs/metricflow/pull/809)) +- Update typing-extensions minimum version to 4.4 ([#823](https://github.com/dbt-labs/metricflow/pull/823)) +- Update dbt dependencies to ~=1.7.0 ([#860](https://github.com/dbt-labs/metricflow/pull/860)) + +### Contributors +- [@DevonFulcher](https://github.com/DevonFulcher) ([#None](https://github.com/dbt-labs/metricflow/issues/None), [#None](https://github.com/dbt-labs/metricflow/issues/None), [#None](https://github.com/dbt-labs/metricflow/issues/None), [#None](https://github.com/dbt-labs/metricflow/issues/None), [#None](https://github.com/dbt-labs/metricflow/issues/None), [#None](https://github.com/dbt-labs/metricflow/issues/None), [#None](https://github.com/dbt-labs/metricflow/issues/None), [#None](https://github.com/dbt-labs/metricflow/issues/None)) +- [@WilliamDee](https://github.com/WilliamDee) ([#None](https://github.com/dbt-labs/metricflow/issues/None)) +- [@courtneyholcomb](https://github.com/courtneyholcomb) ([#842](https://github.com/dbt-labs/metricflow/issues/842), [#770](https://github.com/dbt-labs/metricflow/issues/770), [#804](https://github.com/dbt-labs/metricflow/issues/804), [#759](https://github.com/dbt-labs/metricflow/issues/759), [#850](https://github.com/dbt-labs/metricflow/issues/850), [#801](https://github.com/dbt-labs/metricflow/issues/801), [#802](https://github.com/dbt-labs/metricflow/issues/802), [#835](https://github.com/dbt-labs/metricflow/issues/835)) +- [@plypaul](https://github.com/plypaul) ([#846](https://github.com/dbt-labs/metricflow/issues/846), [#765](https://github.com/dbt-labs/metricflow/issues/765), [#809](https://github.com/dbt-labs/metricflow/pull/809)) +- [@tlento](https://github.com/tlento) ([#714](https://github.com/dbt-labs/metricflow/issues/714), [#792](https://github.com/dbt-labs/metricflow/issues/792), [#825](https://github.com/dbt-labs/metricflow/issues/825), [#823](https://github.com/dbt-labs/metricflow/pull/823), [#860](https://github.com/dbt-labs/metricflow/pull/860)) diff --git a/.changes/unreleased/Breaking Changes-20231102-182815.yaml b/.changes/unreleased/Breaking Changes-20231102-182815.yaml deleted file mode 100644 index c4847a91c6..0000000000 --- a/.changes/unreleased/Breaking Changes-20231102-182815.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Breaking Changes -body: Use FULL OUTER JOIN to combine input metrics for derived metrics. This is a change from using INNER JOIN and may result in changes in output. -time: 2023-11-02T18:28:15.181064-07:00 -custom: - Author: courtneyholcomb - Issue: "842" diff --git a/.changes/unreleased/Breaking Changes-20231106-090301.yaml b/.changes/unreleased/Breaking Changes-20231106-090301.yaml deleted file mode 100644 index d4d05c3cca..0000000000 --- a/.changes/unreleased/Breaking Changes-20231106-090301.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Breaking Changes -body: Update Dependencies to Use `dbt-semantic-interfaces~=0.4.0` -time: 2023-11-06T09:03:01.474125-08:00 -custom: - Author: plypaul - Issue: "846" diff --git a/.changes/unreleased/Dependencies-20231012-141930.yaml b/.changes/unreleased/Dependencies-20231012-141930.yaml deleted file mode 100644 index a81e230023..0000000000 --- a/.changes/unreleased/Dependencies-20231012-141930.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: Update to dbt-semantic-interfaces~=0.3.0. -time: 2023-10-12T14:19:30.799362-07:00 -custom: - Author: plypaul - PR: "809" diff --git a/.changes/unreleased/Dependencies-20231026-151457.yaml b/.changes/unreleased/Dependencies-20231026-151457.yaml deleted file mode 100644 index 7b8d303043..0000000000 --- a/.changes/unreleased/Dependencies-20231026-151457.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: Update typing-extensions minimum version to 4.4 -time: 2023-10-26T15:14:57.44532-07:00 -custom: - Author: tlento - PR: "823" diff --git a/.changes/unreleased/Dependencies-20231109-172955.yaml b/.changes/unreleased/Dependencies-20231109-172955.yaml deleted file mode 100644 index f8568d7fd7..0000000000 --- a/.changes/unreleased/Dependencies-20231109-172955.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: Update dbt dependencies to ~=1.7.0 -time: 2023-11-09T17:29:55.964376-08:00 -custom: - Author: tlento - PR: "860" diff --git a/.changes/unreleased/Features-20230911-190924.yaml b/.changes/unreleased/Features-20230911-190924.yaml deleted file mode 100644 index 85d9d36c35..0000000000 --- a/.changes/unreleased/Features-20230911-190924.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Enable DATE PART aggregation for time dimensions -time: 2023-09-11T19:09:24.960342-07:00 -custom: - Author: courtneyholcomb - Issue: "770" diff --git a/.changes/unreleased/Features-20230913-173608.yaml b/.changes/unreleased/Features-20230913-173608.yaml deleted file mode 100644 index 64e281be69..0000000000 --- a/.changes/unreleased/Features-20230913-173608.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support Saved Queries in MetricFlow -time: 2023-09-13T17:36:08.874392-07:00 -custom: - Author: plypaul - Issue: "765" diff --git a/.changes/unreleased/Features-20230918-155524.yaml b/.changes/unreleased/Features-20230918-155524.yaml deleted file mode 100644 index d6d4124074..0000000000 --- a/.changes/unreleased/Features-20230918-155524.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support for sort order in query interface -time: 2023-09-18T15:55:24.086263-05:00 -custom: - Author: DevonFulcher - Issue: None diff --git a/.changes/unreleased/Features-20231004-102255.yaml b/.changes/unreleased/Features-20231004-102255.yaml deleted file mode 100644 index ebde51d332..0000000000 --- a/.changes/unreleased/Features-20231004-102255.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support for the Dimension(...).grain(...) syntax for the where parameter -time: 2023-10-04T10:22:55.730467-05:00 -custom: - Author: DevonFulcher - Issue: None diff --git a/.changes/unreleased/Features-20231010-174851.yaml b/.changes/unreleased/Features-20231010-174851.yaml deleted file mode 100644 index 6febb24e80..0000000000 --- a/.changes/unreleased/Features-20231010-174851.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support querying dimensions without metrics. -time: 2023-10-10T17:48:51.152712-07:00 -custom: - Author: courtneyholcomb - Issue: "804" diff --git a/.changes/unreleased/Features-20231031-155842.yaml b/.changes/unreleased/Features-20231031-155842.yaml deleted file mode 100644 index 57c2819412..0000000000 --- a/.changes/unreleased/Features-20231031-155842.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Join to time spine and fill nulls when requested on metric input measures. -time: 2023-10-31T15:58:42.748645-07:00 -custom: - Author: courtneyholcomb - Issue: "759" diff --git a/.changes/unreleased/Features-20231106-150014.yaml b/.changes/unreleased/Features-20231106-150014.yaml deleted file mode 100644 index 37f810fba4..0000000000 --- a/.changes/unreleased/Features-20231106-150014.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Fill nulls for multi-metric queries -time: 2023-11-06T15:00:14.37926-08:00 -custom: - Author: courtneyholcomb - Issue: "850" diff --git a/.changes/unreleased/Fixes-20230926-140015.yaml b/.changes/unreleased/Fixes-20230926-140015.yaml deleted file mode 100644 index 339de9012e..0000000000 --- a/.changes/unreleased/Fixes-20230926-140015.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Removing methods and reordering parameters for Query Interface. -time: 2023-09-26T14:00:15.741015-05:00 -custom: - Author: DevonFulcher - Issue: None diff --git a/.changes/unreleased/Fixes-20231005-124722.yaml b/.changes/unreleased/Fixes-20231005-124722.yaml deleted file mode 100644 index 6cc367d7b4..0000000000 --- a/.changes/unreleased/Fixes-20231005-124722.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: Coerce time granularity to configured value to prevent finer-grained timestamps - from causing unexpected query behavior -time: 2023-10-05T12:47:22.662371-07:00 -custom: - Author: tlento - Issue: "714" diff --git a/.changes/unreleased/Fixes-20231009-195312.yaml b/.changes/unreleased/Fixes-20231009-195312.yaml deleted file mode 100644 index 3f50551bb4..0000000000 --- a/.changes/unreleased/Fixes-20231009-195312.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Prioritize source nodes based on correct cost -time: 2023-10-09T19:53:12.491719-07:00 -custom: - Author: courtneyholcomb - Issue: "801" diff --git a/.changes/unreleased/Fixes-20231010-144137.yaml b/.changes/unreleased/Fixes-20231010-144137.yaml deleted file mode 100644 index e871e818a6..0000000000 --- a/.changes/unreleased/Fixes-20231010-144137.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Enables case insensitivity for various query params. -time: 2023-10-10T14:41:37.181704-07:00 -custom: - Author: courtneyholcomb - Issue: "802" diff --git a/.changes/unreleased/Fixes-20231015-170649.yaml b/.changes/unreleased/Fixes-20231015-170649.yaml deleted file mode 100644 index db38364815..0000000000 --- a/.changes/unreleased/Fixes-20231015-170649.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Ensure extract calls return consistent results across engines -time: 2023-10-15T17:06:49.646146-07:00 -custom: - Author: tlento - Issue: "792" diff --git a/.changes/unreleased/Fixes-20231102-141010.yaml b/.changes/unreleased/Fixes-20231102-141010.yaml deleted file mode 100644 index 17134f1329..0000000000 --- a/.changes/unreleased/Fixes-20231102-141010.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: The --order param was being dropped from CLI saved queries. -time: 2023-11-02T14:10:10.028618-07:00 -custom: - Author: courtneyholcomb - Issue: "835" diff --git a/.changes/unreleased/Fixes-20231108-150708.yaml b/.changes/unreleased/Fixes-20231108-150708.yaml deleted file mode 100644 index 7a0a9ebdac..0000000000 --- a/.changes/unreleased/Fixes-20231108-150708.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix query validation for metric_time requirements -time: 2023-11-08T15:07:08.681102-08:00 -custom: - Author: tlento - Issue: "825" diff --git a/.changes/unreleased/Under the Hood-20230912-161509.yaml b/.changes/unreleased/Under the Hood-20230912-161509.yaml deleted file mode 100644 index 369456bcc4..0000000000 --- a/.changes/unreleased/Under the Hood-20230912-161509.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: A simple update to make the where filter query parameter objects more accurate -time: 2023-09-12T16:15:09.057779-05:00 -custom: - Author: DevonFulcher - Issue: None diff --git a/.changes/unreleased/Under the Hood-20231006-095540.yaml b/.changes/unreleased/Under the Hood-20231006-095540.yaml deleted file mode 100644 index 8630b267ce..0000000000 --- a/.changes/unreleased/Under the Hood-20231006-095540.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Expose underlying where clause error message -time: 2023-10-06T09:55:40.737735-05:00 -custom: - Author: DevonFulcher - Issue: None diff --git a/.changes/unreleased/Under the Hood-20231006-170905.yaml b/.changes/unreleased/Under the Hood-20231006-170905.yaml deleted file mode 100644 index 9fad8d4487..0000000000 --- a/.changes/unreleased/Under the Hood-20231006-170905.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove query interface and depend on DSI protocol instead -time: 2023-10-06T17:09:05.593372-05:00 -custom: - Author: DevonFulcher - Issue: None diff --git a/.changes/unreleased/Under the Hood-20231017-155210.yaml b/.changes/unreleased/Under the Hood-20231017-155210.yaml deleted file mode 100644 index 787ea45ab6..0000000000 --- a/.changes/unreleased/Under the Hood-20231017-155210.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: re-categorize `TypeErrors` that arise from `create_from_where_filter` into `InvalidQueryException` -time: 2023-10-17T15:52:10.948956-05:00 -custom: - Author: DevonFulcher - Issue: None diff --git a/.changes/unreleased/Under the Hood-20231102-161245.yaml b/.changes/unreleased/Under the Hood-20231102-161245.yaml deleted file mode 100644 index 72f9286d85..0000000000 --- a/.changes/unreleased/Under the Hood-20231102-161245.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Add the ability to use distinct select in sql nodes -time: 2023-11-02T16:12:45.123252-04:00 -custom: - Author: WilliamDee - Issue: None diff --git a/.changes/unreleased/Under the Hood-20231107-184138.yaml b/.changes/unreleased/Under the Hood-20231107-184138.yaml deleted file mode 100644 index 51ff6aeb11..0000000000 --- a/.changes/unreleased/Under the Hood-20231107-184138.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Removed DatePart Enum and change imports to depend on DSI version instead. -time: 2023-11-07T18:41:38.606807-06:00 -custom: - Author: DevonFulcher - Issue: None