Skip to content

Commit

Permalink
Add is_binary to binary_sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Aug 28, 2023
1 parent 9235371 commit 8a9ad3d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sql/_stats.prql
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,13 @@ let skip_reason_stats = (

let binary_sizes = (
from base
group {is_binary = skip_reason == "binary"} (
derive {
is_binary = skip_reason == "binary"
}

group {is_binary} (
aggregate {
is_binary,
total_projects = approx_count_distinct(project_name) | as bigint,
total_size = sum(size),
total_files = count(s"*")
Expand Down

0 comments on commit 8a9ad3d

Please sign in to comment.