Skip to content

Commit 3c06193

Browse files
authored
BUG: fix series size calculation (#123)
Remove ROUND(), which with 2 decimals resulted in some series having 0 size.
1 parent 5b237b0 commit 3c06193

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/sql/idc_index.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ SELECT
8181
ANY_VALUE(CONCAT(series_aws_url,"*")) AS series_aws_url,
8282
# description:
8383
# total size of the series in megabytes
84-
ROUND(SUM(SAFE_CAST(instance_size AS float64))/1000000, 2) AS series_size_MB,
84+
SUM(SAFE_CAST(instance_size AS float64))/1000000. AS series_size_MB,
8585
FROM
8686
`bigquery-public-data.idc_v23.dicom_all` AS dicom_all
8787
JOIN

0 commit comments

Comments
 (0)