From 8a9ad3db6a64353452d786d07b6525022c1a3d64 Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Mon, 28 Aug 2023 13:43:21 +0100 Subject: [PATCH] Add is_binary to binary_sizes --- sql/_stats.prql | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sql/_stats.prql b/sql/_stats.prql index ecae54cd..21ec7813 100644 --- a/sql/_stats.prql +++ b/sql/_stats.prql @@ -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"*")