Skip to content

Commit 22b967d

Browse files
fix: bytes scanned in query
instead of using file_size from manifest -- which is size of json we should use ingestion_size -- which is compressed size
1 parent 16189eb commit 22b967d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/query/stream_schema_provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,13 +339,13 @@ impl StandardTableProvider {
339339
mut file_path,
340340
num_rows,
341341
columns,
342-
file_size,
342+
ingestion_size,
343343
..
344344
} = file;
345345

346346
// Track billing metrics for files scanned in query
347347
file_count += 1;
348-
total_file_size += file_size;
348+
total_file_size += ingestion_size;
349349

350350
// object_store::path::Path doesn't automatically deal with Windows path separators
351351
// to do that, we are using from_absolute_path() which takes into consideration the underlying filesystem

0 commit comments

Comments
 (0)