We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdad0da commit 36607a5Copy full SHA for 36607a5
1 file changed
definitions/output/crawl/pages.js
@@ -30,6 +30,20 @@ ORDER BY cnt_pages DESC
30
HAVING cnt_pages > 200
31
`)
32
33
+assert('pages_per_client')
34
+ .tags(['crawl_complete'])
35
+ .query(ctx => `
36
+SELECT
37
+ client,
38
+ COUNT(DISTINCT page) AS cnt_pages
39
+FROM ${ctx.ref('crawl_staging', 'pages')}
40
+WHERE
41
+ date = '${constants.currentMonth}'
42
+GROUP BY
43
+ client
44
+HAVING cnt_pages < 20000000
45
+ `)
46
+
47
publish('pages', {
48
type: 'incremental',
49
protected: true,
0 commit comments