Files
doris/regression-test/suites/variant_github_events_p2/sql/howHasTheTotalNumberOfStarsChangedOverTime.sql
2024-12-12 12:16:04 +08:00

3 lines
168 B
SQL

SELECT year(cast(v["created_at"] as datetime)) AS year, count() AS stars FROM github_events WHERE cast(v["type"] as string) = 'WatchEvent' GROUP BY year ORDER BY year