@@ -7,15 +7,26 @@ 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 => `
12- SET @@RESERVATION=' ${ constants . reservation_id } ';
22+ ${ reservations . reservation_setter ( ctx ) }
1323
1424DELETE FROM ${ ctx . self ( ) }
1525WHERE date = '${ constants . currentMonth } '
1626 AND client = 'desktop';
1727` ) . query ( ctx => `
18- SELECT *
28+ SELECT
29+ *
1930FROM ${ ctx . ref ( 'crawl_staging' , 'parsed_css' ) }
2031WHERE date = '${ constants . currentMonth } '
2132 AND client = 'desktop'
@@ -26,7 +37,8 @@ WHERE date = '${constants.currentMonth}'
2637 AND client = 'mobile';
2738
2839INSERT INTO ${ ctx . self ( ) }
29- SELECT *
40+ SELECT
41+ *
3042FROM ${ ctx . ref ( 'crawl_staging' , 'parsed_css' ) }
3143WHERE date = '${ constants . currentMonth } '
3244 AND client = 'mobile'
0 commit comments