Skip to content

Commit 1fef068

Browse files
committed
Fix dates
1 parent 4616b33 commit 1fef068

21 files changed

+23
-23
lines changed

sql/timeseries/a11yScores.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ LANGUAGE js AS """
99
""";
1010

1111
SELECT
12-
date,
13-
UNIX_DATE(CAST(REPLACE(date, '_', '-') AS DATE)) * 1000 * 60 * 60 * 24 AS timestamp,
12+
FORMAT_TIMESTAMP('%Y_%m_%d', date) AS date,
13+
UNIX_DATE(date) * 1000 * 60 * 60 * 24 AS timestamp,
1414
client,
1515
ROUND(APPROX_QUANTILES(score, 1000)[OFFSET(100)], 2) AS p10,
1616
ROUND(APPROX_QUANTILES(score, 1000)[OFFSET(250)], 2) AS p25,

sql/timeseries/bootupJs.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#standardSQL
22
SELECT
3-
date,
4-
timestamp,
3+
FORMAT_TIMESTAMP('%Y_%m_%d', date) AS date,
4+
UNIX_DATE(date) * 1000 * 60 * 60 * 24 AS timestamp,
55
client,
66
ROUND(APPROX_QUANTILES(value, 1000)[OFFSET(100)], 2) AS p10,
77
ROUND(APPROX_QUANTILES(value, 1000)[OFFSET(250)], 2) AS p25,

sql/timeseries/bytesCss.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#standardSQL
22
SELECT
3-
date,
3+
FORMAT_TIMESTAMP('%Y_%m_%d', date) AS date,
44
UNIX_DATE(date) * 1000 * 60 * 60 * 24 AS timestamp,
55
client,
66
ROUND(APPROX_QUANTILES(FLOAT64(summary.bytesCss), 1001)[OFFSET(101)] / 1024, 2) AS p10,

sql/timeseries/bytesFont.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#standardSQL
22
SELECT
3-
date,
3+
FORMAT_TIMESTAMP('%Y_%m_%d', date) AS date,
44
UNIX_DATE(date) * 1000 * 60 * 60 * 24 AS timestamp,
55
client,
66
ROUND(APPROX_QUANTILES(FLOAT64(summary.bytesFont), 1001)[OFFSET(101)] / 1024, 2) AS p10,

sql/timeseries/bytesHtml.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#standardSQL
22
SELECT
3-
date,
3+
FORMAT_TIMESTAMP('%Y_%m_%d', date) AS date,
44
UNIX_DATE(date) * 1000 * 60 * 60 * 24 AS timestamp,
55
client,
66
ROUND(APPROX_QUANTILES(FLOAT64(summary.bytesHtml), 1001)[OFFSET(101)] / 1024, 2) AS p10,

sql/timeseries/bytesImg.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#standardSQL
22
SELECT
3-
date,
3+
FORMAT_TIMESTAMP('%Y_%m_%d', date) AS date,
44
UNIX_DATE(date) * 1000 * 60 * 60 * 24 AS timestamp,
55
client,
66
ROUND(APPROX_QUANTILES(FLOAT64(summary.bytesImg), 1001)[OFFSET(101)] / 1024, 2) AS p10,

sql/timeseries/bytesJs.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#standardSQL
22
SELECT
3-
date,
3+
FORMAT_TIMESTAMP('%Y_%m_%d', date) AS date,
44
UNIX_DATE(date) * 1000 * 60 * 60 * 24 AS timestamp,
55
client,
66
ROUND(APPROX_QUANTILES(FLOAT64(summary.bytesJS), 1001)[OFFSET(101)] / 1024, 2) AS p10,

sql/timeseries/bytesOther.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#standardSQL
22
SELECT
3-
date,
3+
FORMAT_TIMESTAMP('%Y_%m_%d', date) AS date,
44
UNIX_DATE(date) * 1000 * 60 * 60 * 24 AS timestamp,
55
client,
66
ROUND(APPROX_QUANTILES(FLOAT64(summary.bytesOther), 1001)[OFFSET(101)] / 1024, 2) AS p10,

sql/timeseries/bytesTotal.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#standardSQL
22
SELECT
3-
date,
3+
FORMAT_TIMESTAMP('%Y_%m_%d', date) AS date,
44
UNIX_DATE(date) * 1000 * 60 * 60 * 24 AS timestamp,
55
client,
66
ROUND(APPROX_QUANTILES(FLOAT64(summary.bytesTotal), 1001)[OFFSET(101)] / 1024, 2) AS p10,

sql/timeseries/bytesVideo.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#standardSQL
22
SELECT
3-
date,
3+
FORMAT_TIMESTAMP('%Y_%m_%d', date) AS date,
44
UNIX_DATE(date) * 1000 * 60 * 60 * 24 AS timestamp,
55
client,
66
ROUND(APPROX_QUANTILES(FLOAT64(summary.bytesVideo), 1001)[OFFSET(101)] / 1024, 2) AS p10,

0 commit comments

Comments
 (0)