We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 461077a commit a722e60Copy full SHA for a722e60
1 file changed
definitions/output/reports/reports_dynamic.js
@@ -12,17 +12,19 @@ SELECT
12
* EXCEPT(date)
13
FROM ${ctx.self()}
14
WHERE date = '${params.date}'
15
-`} else if (sql.type === 'timeseries') {
+`
16
+ } else if (sql.type === 'timeseries') {
17
query = `
18
SELECT
19
FORMAT_DATE('%Y_%m_%d', date) AS date,
20
21
-`} else {
22
23
+ } else {
24
throw new Error('Unknown SQL type')
25
}
26
- const queryOutput = query.replace(/[\r\n]+/g, ' ');
27
+ const queryOutput = query.replace(/[\r\n]+/g, ' ')
28
return queryOutput
29
30
0 commit comments