Created
October 1, 2014 15:35
-
-
Save Ironholds/a68d660fe4b2e1b65284 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 regexp_extract(uri_path, '/((\\d+px-)?[^/]+)$', 1) as uri_file | |
| FROM wmf_raw.webrequest | |
| WHERE year = 2014 AND month = 09 AND day = 23 AND | |
| hour = 07 AND webrequest_source='upload' LIMIT 5; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your parens were a bit off, and you need to be getting the 2nd capture in this regex: