-
-
Save igrigorik/9e66f92338821af4976b3cf25ab7f55a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"f0_": "202863", | |
"entries": "getEntriesByType(\"resource" | |
}, | |
{ | |
"f0_": "4454", | |
"entries": "getEntriesByType('resource" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
COUNT(entries), entries FROM ( | |
SELECT | |
page, | |
url, | |
REGEXP_EXTRACT(body, r'i:getEntriesByType\([\"\']resource)') AS entries | |
FROM | |
[httparchive:har.2016_09_01_chrome_requests_bodies] | |
WHERE | |
body CONTAINS 'getEntriesByType' ) | |
WHERE | |
entries IS NOT NULL | |
GROUP BY entries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT count(entries), entries FROM ( | |
SELECT page, url, | |
REGEXP_EXTRACT(body, r'(getEntriesByType\([\"\']resource)') AS entries | |
FROM [httparchive:har.2016_09_01_chrome_requests_bodies] | |
WHERE body CONTAINS 'getEntriesByType' IGNORE CASE | |
) | |
WHERE entries IS NOT null | |
GROUP by entries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"f0_": "4454", | |
"entries": "getEntriesByType('resource" | |
}, | |
{ | |
"f0_": "202863", | |
"entries": "getEntriesByType(\"resource" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Potentially dumb question, but wouldn't the "IGNORE_CASE" apply to 'getEntriesByType' rather than the regexp?