Skip to content

Commit 6935743

Browse files
authored
make README query more interesting by joining in repos list (#5478)
1 parent 38692a4 commit 6935743

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ from the current GitHub API:
4040

4141
```sql
4242
FROM 'https://data.gharchive.org/2015-01-01-15.json.gz'
43-
| SELECT union(repo.name) AS repo, actor.login AS user
43+
| SELECT union(repo.name) AS repos, actor.login AS user
4444
GROUP BY user
45-
ORDER BY len(repo) DESC
45+
ORDER BY len(repos) DESC
4646
LIMIT 5
4747
| FORK (
4848
=> FROM eval(f'https://api.github.com/users/{user}')
4949
| SELECT VALUE {user:login,created_at:time(created_at)}
5050
=> PASS
5151
)
52-
| JOIN USING (user)
52+
| JOIN USING (user) repos
5353
```
5454

5555
## Super JSON

0 commit comments

Comments
 (0)