The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update v2_count.pipe
Kiran K0eee27972a80
diff --git a/packages/tinybird/pipes/v2_count.pipe b/packages/tinybird/pipes/v2_count.pipeindex 7df39f6c8a..4ef9bd6d8c 100644--- a/packages/tinybird/pipes/v2_count.pipe+++ b/packages/tinybird/pipes/v2_count.pipe@@ -45,7 +45,13 @@ SQL >WHEREtrue{% if defined(linkId) %} AND link_id = {{ String(linkId) }} {% end %}- {% if defined(customerId) %} AND customer_id = {{ String(customerId) }} {% end %}+ {% if defined(customerId) %}+ AND click_id IN (+ SELECT DISTINCT click_id+ FROM dub_lead_events_mv+ WHERE customer_id = {{ String(customerId) }}+ )+ {% end %}{% if defined(qr) %} AND qr = {{ Boolean(qr) }} {% end %}{% if defined(continent) %} AND continent = {{ continent }} {% end %}{% if defined(country) %} AND country = {{ country }} {% end %}