The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix timeseries pipe
Steven Tey14913ae7cb8e
diff --git a/packages/tinybird/endpoints/timeseries.pipe b/packages/tinybird/endpoints/timeseries.pipeindex 6bf2631144..ddba283797 100644--- a/packages/tinybird/endpoints/timeseries.pipe+++ b/packages/tinybird/endpoints/timeseries.pipe@@ -1,3 +1,19 @@+NODE month_intervals+SQL >++ %+ SELECT+ toStartOfMonth(toDateTime64({{ DateTime64(start, '2023-02-23 20:45:02.959') }}, 3)) as interval+ ORDER BY interval ASC+ WITH FILL+ FROM+ toStartOfMonth(toDateTime64({{ DateTime64(start, '2023-02-23 20:45:02.959') }}, 3))+ TO+ toStartOfMonth(addMonths(toDateTime64({{ DateTime64(end, '2023-06-06 20:45:02.959') }}, 3), 1))+ STEP interval 1 month+++NODE day_intervalsSQL >@@ -75,22 +91,4 @@ SQL >{% elif granularity == "month" %} month_intervals{% else %} day_intervals{% end %}- LEFT JOIN timeseries_data USING interval----NODE month_intervals-SQL >-- %- SELECT- toStartOfMonth(toDateTime64({{ DateTime64(start, '2023-02-23 20:45:02.959') }}, 3)) as interval- ORDER BY interval ASC- WITH FILL- FROM- toStartOfMonth(toDateTime64({{ DateTime64(start, '2023-02-23 20:45:02.959') }}, 3))- TO- toStartOfMonth(addMonths(toDateTime64({{ DateTime64(end, '2023-06-06 20:45:02.959') }}, 3), 1))- STEP interval 1 month--+ LEFT JOIN timeseries_data USING interval\ No newline at end of file