Skip to content

Commit dfec8ba

Browse files
committed
cast timestamp to string in BigQuery export query for reports
1 parent 4f235f1 commit dfec8ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

definitions/output/reports/reports_dynamic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function buildExportQuery(reportConfig) {
8080
} else if (sql.type === 'timeseries') {
8181
query = `
8282
SELECT
83-
UNIX_DATE(date) * 1000 * 60 * 60 * 24 AS timestamp,
83+
CAST(UNIX_DATE(date) * 1000 * 60 * 60 * 24 AS STRING) AS timestamp,
8484
FORMAT_DATE('%Y_%m_%d', date) AS date,
8585
* EXCEPT(date, metric, lens)
8686
FROM \`${EXPORT_CONFIG.dataset}.${tableName}\`

0 commit comments

Comments
 (0)