Files
doris/regression-test/suites/variant_github_events_p0/topRepositoriesByStars.sql

2 lines
200 B
SQL

SELECT cast(v["repo"]["name"] as string), count() AS stars FROM github_events WHERE cast(v["type"] as string) = 'WatchEvent' GROUP BY cast(v["repo"]["name"] as string) ORDER BY stars DESC, 1 LIMIT 50