Skip to content

Commit b6c8a98

Browse files
authored
fix: ignoring 1970 dated activities when deducing startDate for the all time filter (#3100)
1 parent 2f14442 commit b6c8a98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/libs/tinybird/pipes/generate_timeseries_bounds.pipe

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ SQL >
1414
min(toDate(activities_filtered.timestamp)) as actual_start_date,
1515
toDate({{ endDate }}) as actual_end_date
1616
from activities_filtered
17+
where activities_filtered.timestamp > '1980-01-01'
1718
{% end %}
1819
{% if not defined(startDate) and not defined(endDate) %}
1920
select
2021
min(toDate(activities_filtered.timestamp)) as actual_start_date,
2122
toDate(now()) as actual_end_date
2223
from activities_filtered
24+
where activities_filtered.timestamp > '1980-01-01'
2325
{% end %}
2426
{% if defined(startDate) and defined(endDate) %}
2527
select toDate({{ startDate }}) as actual_start_date, toDate({{ endDate }}) as actual_end_date

0 commit comments

Comments
 (0)