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

2 lines
169 B
SQL

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