Skip to content

Commit da2dc2c

Browse files
committed
css JSON parsing
1 parent 9cdb056 commit da2dc2c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

definitions/output/crawl/parsed_css.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ DELETE FROM ${ctx.self()}
1515
WHERE date = '${constants.currentMonth}'
1616
AND client = 'desktop';
1717
`).query(ctx => `
18-
SELECT *
18+
SELECT
19+
* EXCEPT(css),
20+
SAFE.PARSE_JSON(css, wide_number_mode=>'round') AS css
1921
FROM ${ctx.ref('crawl_staging', 'parsed_css')}
2022
WHERE date = '${constants.currentMonth}'
2123
AND client = 'desktop'
@@ -26,7 +28,9 @@ WHERE date = '${constants.currentMonth}'
2628
AND client = 'mobile';
2729
2830
INSERT INTO ${ctx.self()}
29-
SELECT *
31+
SELECT
32+
* EXCEPT(css),
33+
SAFE.PARSE_JSON(css, wide_number_mode=>'round') AS css
3034
FROM ${ctx.ref('crawl_staging', 'parsed_css')}
3135
WHERE date = '${constants.currentMonth}'
3236
AND client = 'mobile'

0 commit comments

Comments
 (0)