is_time_spine
metadata tag in its YAML configuration.timegrain
attribute for the granularity column, to enforce that granularity.
many-to-one
(a time spine is always a shared dimension)right
(a time spine is always filling missing dates)one-to-many
(a time spine can filter other entities, but is never filtered by them)orders
is connected to a time spine on the orders.order_date = date.date
field, then
order_date
is the default date field for all metrics acting on orders
.
Metrics within an entity that includes a default date field will use it for time metrics, utilizing the associated time spine.
In particular,
TIME_METRIC(orders.count)
by date.month
(while date
is a time spine and orders.order_date
is
the default date field used to connect orders
with date
). If there are no valid order_date
rows (i.e. no orders)
between March 1st and March 31st, then Honeydew will fill March as a month with zero orders.TIME_METRIC(orders.count, offset => '1 month')
) the offset will be relative to
the default date field.date