From 385e426bb9710d61e53a1dc8a4dda3cd120cfcc6 Mon Sep 17 00:00:00 2001 From: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com> Date: Tue, 7 Jan 2025 08:11:25 +0100 Subject: [PATCH] spelling fix --- definitions/output/reports/reports_dynamic.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/definitions/output/reports/reports_dynamic.js b/definitions/output/reports/reports_dynamic.js index 7dcc90e..fc71f57 100644 --- a/definitions/output/reports/reports_dynamic.js +++ b/definitions/output/reports/reports_dynamic.js @@ -43,7 +43,7 @@ for ( if (startDate === endDate) { iterations.forEach((params, i) => { - publish(params.metric.id + '_' + params.sql.type + '_' + params.lense.name, { + publish(params.metric.id + '_' + params.sql.type + '_' + params.lens.name, { type: 'incremental', protected: true, bigquery: params.sql.type === 'histogram' ? { partitionBy: 'date', clusterBy: ['client'] } : {}, @@ -53,20 +53,20 @@ if (startDate === endDate) { --DELETE FROM ${ctx.self()} --WHERE date = '${params.date}'; `).query(ctx => ` -/* {"dataform_trigger": "report_complete", "date": "${params.date}", "name": "${params.metric.id}", "type": "${params.sql.type}", "lense": "${params.lense.name}"} */` + +/* {"dataform_trigger": "report_complete", "date": "${params.date}", "name": "${params.metric.id}", "type": "${params.sql.type}", "lense": "${params.lens.name}"} */` + params.sql.query(ctx, params) ) }) } else { iterations.forEach((params, i) => { operate( - params.metric.id + '_' + params.sql.type + '_' + params.lense.name + '_' + params.date) + params.metric.id + '_' + params.sql.type + '_' + params.lens.name + '_' + params.date) .tags(['crawl_complete', 'reports']) .queries(ctx => ` DELETE FROM reports.${params.metric.id}_${params.sql.type} WHERE date = '${params.date}'; -/* {"dataform_trigger": "report_complete", "date": "${params.date}", "name": "${params.metric.id}", "type": "${params.sql.type}", "lense": "${params.lense.name}"} */ +/* {"dataform_trigger": "report_complete", "date": "${params.date}", "name": "${params.metric.id}", "type": "${params.sql.type}", "lense": "${params.lens.name}"} */ INSERT INTO reports.${params.metric.id}_${params.sql.type}` + params.sql.query(ctx, params) )