Merged PR 4086: Changed to cube instead of rollup
# Description Changed to cube instead of rollup to get all `by_billing_country` having global segmentation. Updated macro so instead of `By # of Listings Booked in 12 Months` is `By # of Listings` # Checklist - [x] The edited models and dependants run properly with production data. - [x] The edited models are sufficiently documented. - [x] The edited models contain PK tests, and I've ran and passed them. - [x] I have checked for DRY opportunities with other models and docs. - [x] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged. changed to cube instead of rollup Related work items: #26223
This commit is contained in:
commit
ee1bd1976a
2 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ It provides a proper display name for reporting purposes.
|
||||||
{"dimension": "'global'", "dimension_display": "'Global'"},
|
{"dimension": "'global'", "dimension_display": "'Global'"},
|
||||||
{
|
{
|
||||||
"dimension": "'by_number_of_listings'",
|
"dimension": "'by_number_of_listings'",
|
||||||
"dimension_display": "'By # of Listings Booked in 12 Months'",
|
"dimension_display": "'By # of Listings'",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"dimension": "'by_billing_country'",
|
"dimension": "'by_billing_country'",
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ with
|
||||||
and date_trunc('month', m.date)::date <> date_trunc('month', now())::date
|
and date_trunc('month', m.date)::date <> date_trunc('month', now())::date
|
||||||
where d.hubspot_listing_segmentation <> 'UNSET'
|
where d.hubspot_listing_segmentation <> 'UNSET'
|
||||||
group by
|
group by
|
||||||
rollup (
|
cube (
|
||||||
m.date,
|
m.date,
|
||||||
d.hubspot_listing_segmentation,
|
d.hubspot_listing_segmentation,
|
||||||
d.main_billing_country_iso_3_per_deal
|
d.main_billing_country_iso_3_per_deal
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue