You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# AL04 - Asks for unique table aliases meaning it complains if selecting from two 2021_07_01 tables as implicit alias is table name (not fully qualified) so same.
16
16
# AL07 - Avoid aliases in from and join - why?
17
17
# AM03 - if using DESC in one ORDER BY column, then insist on ASC/DESC for all.
18
18
# AM05 - INNER JOIN must be fully qualified. Probably should use this but not our style.
19
19
# CP02 - Unquoted identifiers (e.g. column names) will be mixed case so don't enforce case
20
20
# CP03 - Function names will be mixed case so don't enforce case
21
21
# CV02 - Use COALESCE instead of IFNULL or NVL. We think ISNULL is clearer.
22
+
# CV12 - Doesn't work with UNNEST. https://github.com/sqlfluff/sqlfluff/issues/6558
22
23
# LT05 - We allow longer lines as some of our queries are complex. Maybe should limit in future?
23
24
# LT09 - Select targets should be on new lines but sub clauses don't always obey this. Maybe revisit in future?
25
+
# LT14 - Keywords on newline. We have some simple, single line joins
24
26
# RF01 - BigQuery uses STRUCTS which can look like incorrect table references
25
27
# RF02 - Asks for qualified columns for ambiguous ones, but we not qualify our columns, and they are not really ambiguous (or BigQuery would complain)
26
28
# RF03 - Insists on references in column names even if not ambiguous. Bit OTT.
Copy file name to clipboardexpand all lines: sql/histograms/bootupJs.sql
+6-3
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,14 @@ FROM (
8
8
volume /SUM(volume) OVER (PARTITION BY client) AS pdf
9
9
FROM (
10
10
SELECT
11
-
_TABLE_SUFFIX ASclient,
11
+
client,
12
12
COUNT(0) AS volume,
13
-
FLOOR(CAST(IFNULL(JSON_EXTRACT(report, '$.audits.bootup-time.numericValue'), JSON_EXTRACT(report, '$.audits.bootup-time.rawValue')) AS FLOAT64) /100) /10AS bin
13
+
FLOOR(FLOAT64(IFNULL(lighthouse.audits['bootup-time'].numericValue, lighthouse.audits['bootup-time'].rawValue)) /100) /10AS bin
0 commit comments