Google BigQuery SQL Statement -
I am trying to get some data from the GitHub Archive using Google Big Query I am requesting that the current amount of data is very low for the BigQuery process (at least free level), so I am trying to limit the scope of my request
I limited the data I want to do as if the repository which currently will return more than 1000 stars historical data. It's just saying the repository_watchers> 1000 is more complicated because it will remove historical data for the first 1000 stars received a collection.
select repository_name, repository_owner, created_at, type, repository_url, the repository_watchers [githubarchive: Github.timeline] WHERE type = "WatchEvent" ORDER created_at Diissi
< P> Edit: Select the solution I used (@ Brian based on answer) select y.repository_name, y.repository_owner, y.created_at, y.type, y.repository_url, y.repository_watchers [githubarchive: github.timeline] select joining y of (repository_url, Max (the repository_watchers) [githubarchive: github.timeline] X where x.type by repository_url = 'WatchEvent group maximum (repository_watchers) & gt 1000 to be) y On .repository_url = x.repository_url x where y.type = dictated by 'WatchEvent' y.repository_name, y.repository_owner, y.created_at Desc
Comments
Post a Comment