We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a8b99 commit 8d0dd98Copy full SHA for 8d0dd98
tinybird/endpoints/log_timeseries.pipe
@@ -112,8 +112,10 @@ SQL >
112
{% if defined(user_agent) and user_agent != [''] %}
113
AND user_agent in {{Array(user_agent)}}
114
{% end %}
115
- {% if defined(message) and message != '' %}
116
- AND message like concat('%', {{String(message)}}, '%')
+ {% if date_diff_in_hours(start_date, end_date) <= 24 * 7 %}
+ {% if defined(message) and message != '' %}
117
+ AND message like concat('%', {{String(message)}}, '%')
118
+ {% end %}
119
120
GROUP BY date
121
ORDER BY date
0 commit comments