Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/all_stats.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ SQL >
(SELECT COUNT(timestamp) FROM dub_click_events_mv) AS clicks,
(SELECT COUNT(timestamp) + 42036155 FROM dub_links_metadata) AS links,
(SELECT SUM(amount) FROM dub_sale_events_mv) AS sales


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/coordinates_all.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,4 @@ SQL >
)
ORDER BY
timestamp DESC


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/coordinates_sales.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ SQL >
AND city != 'Ashburn'
ORDER BY timestamp DESC
LIMIT 500


TYPE ENDPOINT
2 changes: 1 addition & 1 deletion packages/tinybird/pipes/dub_links_metadata_pipe.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ SQL >
partner_group_id,
folder_id,
tag_ids,
partner_tag_ids,
tenant_id,
created_at,
deleted
Expand All @@ -29,4 +30,3 @@ SQL >
TYPE materialized
DATASOURCE dub_links_metadata_latest


1 change: 1 addition & 0 deletions packages/tinybird/pipes/get_api_log_by_id.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ SQL >
id = {{ String(id) }}
AND workspace_id = {{ String(workspaceId) }}
LIMIT 1
TYPE ENDPOINT
1 change: 1 addition & 0 deletions packages/tinybird/pipes/get_api_logs.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ SQL >
ORDER BY timestamp DESC
LIMIT {{ Int32(limit, 100) }}
OFFSET {{ Int32(offset, 0) }}
TYPE ENDPOINT
1 change: 1 addition & 0 deletions packages/tinybird/pipes/get_api_logs_count.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ SQL >
{% if defined(groupBy) and groupBy == 'routePattern' %} count_by_route_pattern
{% else %} count
{% end %}
TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/get_audit_logs.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ SQL >
{% if defined(workspaceId) %} AND workspace_id = {{ String(workspaceId) }} {% end %}
{% if defined(programId) %} AND program_id = {{ String(programId) }} {% end %}
ORDER BY timestamp DESC


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/get_click_event.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ SQL >
}}
ORDER BY timestamp DESC
LIMIT 1


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/get_framer_lead_events.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ SQL >
WHERE
link_id IN {{ Array(linkIds, 'String', ['link_1JWRSXGRTN95H1YCKTC5BM41B','link_1JWQHXN0Y1QBR7X07YQ6MHWTZ']) }}
AND customer_id IN {{ Array(customerIds, 'String', ['cus_1JWTHSGTT67WY9NK98QSFJ3M4','cus_1JWTQS8S008Q3VTB8ZRG7AE3W']) }}


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/get_import_error_logs.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ SQL >
}}
ORDER BY timestamp DESC
limit 5000


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/get_lead_event.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ SQL >
}}
{% if defined(eventName) %} AND event_name = {{ eventName }} {% end %}
ORDER BY timestamp DESC


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/get_lead_events.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ SQL >
true
{% if defined(customerIds) %} AND customer_id IN {{ Array(customerIds, 'String') }} {% end %}
ORDER BY timestamp DESC


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/get_postback_events.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ SQL >
}}
ORDER BY timestamp DESC
limit 100


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/get_webhook_events.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ SQL >
}}
ORDER BY timestamp DESC
limit 100


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v2_customer_events.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,4 @@ SQL >
)
ORDER BY
timestamp DESC, CASE event WHEN 'click' THEN 1 WHEN 'lead' THEN 2 WHEN 'sale' THEN 3 END DESC


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v2_top_programs.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,4 @@ SQL >
{% elif eventType == 'composite' %} top_programs_composite
{% else %} top_programs_sales
{% end %}


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v3_count.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -318,5 +318,4 @@ FROM
{% elif eventType == 'composite' %} count_composite
{% else %} count_clicks
{% end %}


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v3_events.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -322,5 +322,4 @@ FROM
{% elif eventType == 'sales' %} sale_events
{% else %} click_events
{% end %}


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v3_group_by.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -493,5 +493,4 @@ FROM
{% elif eventType == 'composite' %}group_by_composite
{% else %} group_by_clicks
{% end %}


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v3_group_by_link_country.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ SQL >
ORDER BY
link_id ASC,
clicks DESC


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v3_group_by_link_metadata.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -296,5 +296,4 @@ FROM
{% elif eventType == 'composite' %}group_by_link_metadata_composite
{% else %} group_by_link_metadata_clicks
{% end %}


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v3_timeseries.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -434,5 +434,4 @@ FROM
{% elif eventType == 'composite' %} timeseries_composite
{% else %} timeseries_clicks
{% end %}


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v3_usage.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,4 @@ SQL >

%
SELECT * FROM {% if resource == 'events' %} usage_events {% else %} usage_links {% end %}


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v3_usage_latest.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,4 @@ SQL >

%
SELECT * FROM {% if resource == 'events' %} usage_events {% else %} usage_links {% end %}


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v4_count.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -622,5 +622,4 @@ SQL >
{% elif eventType == 'composite' %} count_composite
{% else %} count_clicks
{% end %}


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v4_events.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -632,5 +632,4 @@ SQL >
{% elif eventType == 'sales' %} sale_events
{% else %} click_events
{% end %}


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v4_group_by.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -821,5 +821,4 @@ SQL >
{% elif eventType == 'composite' %}group_by_composite
{% else %} group_by_clicks
{% end %}


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v4_group_by_link_metadata.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -587,5 +587,4 @@ SQL >
{% elif eventType == 'composite' %}group_by_link_metadata_composite
{% else %} group_by_link_metadata_clicks
{% end %}


TYPE ENDPOINT
3 changes: 1 addition & 2 deletions packages/tinybird/pipes/v4_timeseries.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -764,5 +764,4 @@ SQL >
{% elif eventType == 'composite' %} timeseries_composite
{% else %} timeseries_clicks
{% end %}


TYPE ENDPOINT
Loading