Skip to content

Commit

Permalink
spelling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Jan 7, 2025
1 parent 55adcf4 commit 385e426
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions definitions/output/reports/reports_dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] } : {},
Expand All @@ -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)
)
Expand Down

0 comments on commit 385e426

Please sign in to comment.