@@ -7,6 +7,16 @@ publish('parsed_css', {
77 clusterBy : [ 'client' , 'is_root_page' , 'rank' , 'page' ] ,
88 requirePartitionFilter : true
99 } ,
10+ columns : {
11+ date : 'YYYY-MM-DD format of the HTTP Archive monthly crawl' ,
12+ client : 'Test environment: desktop or mobile' ,
13+ page : 'The URL of the page being tested' ,
14+ is_root_page : 'Whether the page is the root of the origin.' ,
15+ root_page : 'The URL of the root page being tested' ,
16+ rank : 'Site popularity rank, from CrUX' ,
17+ url : 'The URL of the request' ,
18+ css : 'The parsed CSS, in JSON format'
19+ } ,
1020 tags : [ 'crawl_complete' ]
1121} ) . preOps ( ctx => `
1222SET @@RESERVATION='${ constants . reservation_id } ';
@@ -16,9 +26,7 @@ WHERE date = '${constants.currentMonth}'
1626 AND client = 'desktop';
1727` ) . query ( ctx => `
1828SELECT
19- * EXCEPT(css),
20- NULL AS css_backup,
21- SAFE.PARSE_JSON(css, wide_number_mode=>'round') AS css
29+ *
2230FROM ${ ctx . ref ( 'crawl_staging' , 'parsed_css' ) }
2331WHERE date = '${ constants . currentMonth } '
2432 AND client = 'desktop'
@@ -30,9 +38,7 @@ WHERE date = '${constants.currentMonth}'
3038
3139INSERT INTO ${ ctx . self ( ) }
3240SELECT
33- * EXCEPT(css),
34- NULL AS css_backup,
35- SAFE.PARSE_JSON(css, wide_number_mode=>'round') AS css
41+ *
3642FROM ${ ctx . ref ( 'crawl_staging' , 'parsed_css' ) }
3743WHERE date = '${ constants . currentMonth } '
3844 AND client = 'mobile'
0 commit comments