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

10 lines
332 B
SQL

SELECT
cast(v:repo.name as string),
cast(v:payload.issue.`number` as int) as number,
count() AS comments
FROM github_events
WHERE cast(v:type as string) = 'IssueCommentEvent' AND (cast(v:payload.action as string) = 'created')
GROUP BY cast(v:repo.name as string), number
ORDER BY comments DESC, number ASC, 1
LIMIT 50