Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Query - How does an authors commits change over time with respect to code/comments percentage? #9

Open
Blargian opened this issue Jan 7, 2025 · 1 comment
Assignees

Comments

@Blargian
Copy link
Member

Blargian commented Jan 7, 2025

Describe the query

How does an authors commits change over time with respect to code/comments percentage?

This query is linked in the documentation but the link is broken. I noticed that this query does not yet exist so we should add it and update the broken link.

See: query on this page

SELECT
    author,
    countIf(line_type = 'Code') AS code_lines,
    countIf((line_type = 'Comment') OR (line_type = 'Punct')) AS comments,
    code_lines / (comments + code_lines) AS ratio_code,
    toStartOfWeek(time) AS week
FROM git.line_changes
GROUP BY
    time,
    author
ORDER BY
    author ASC,
    time ASC
LIMIT 10
@gingerwizard
Copy link
Collaborator

@lio-p

@gingerwizard gingerwizard assigned lio-p and unassigned gingerwizard Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants