diff --git a/services/libs/tinybird/pipes/health_score_sink.pipe b/services/libs/tinybird/pipes/health_score_sink.pipe deleted file mode 100644 index aa6020bf7b..0000000000 --- a/services/libs/tinybird/pipes/health_score_sink.pipe +++ /dev/null @@ -1,27 +0,0 @@ -NODE health_score_select_fields -SQL > - SELECT - hs.id, - hs.segmentId, - hs.slug, - if(isNaN(hs.overallScore), null, hs.overallScore) as overallScore, - if(isNaN(hs.securityPercentage), null, hs.securityPercentage) as securityPercentage, - hs.securityCategoryPercentage, - if(isNaN(hs.contributorPercentage), null, hs.contributorPercentage) as contributorPercentage, - if(isNaN(hs.popularityPercentage), null, hs.popularityPercentage) as popularityPercentage, - if(isNaN(hs.developmentPercentage), null, hs.developmentPercentage) as developmentPercentage, - p.healthScoreV2 as overall_score_v2, - p.coveredCategoryCount as covered_category_count_v2, - p.healthMaxScore as health_max_score_v2, - p.healthLabel as health_label_v2, - toStartOfDay(now()) as date - FROM health_score_copy_ds AS hs - LEFT JOIN project_insights_copy_ds AS p ON hs.id = p.id AND p.type = 'project' - -TYPE SINK -EXPORT_SERVICE kafka -EXPORT_CONNECTION_NAME lfx-oracle-kafka-streaming -EXPORT_SCHEDULE 30 0 * * * -EXPORT_FORMAT csv -EXPORT_STRATEGY @new -EXPORT_KAFKA_TOPIC health_score_sink