diff --git a/src/Storages/ObjectStorage/DataLakes/Iceberg/ManifestFile.cpp b/src/Storages/ObjectStorage/DataLakes/Iceberg/ManifestFile.cpp index a295071f260..d02279bf54b 100644 --- a/src/Storages/ObjectStorage/DataLakes/Iceberg/ManifestFile.cpp +++ b/src/Storages/ObjectStorage/DataLakes/Iceberg/ManifestFile.cpp @@ -69,9 +69,8 @@ namespace /// To handle this issue we subtract 1 from the integral part for lower_bound and add 1 to integral /// part of upper_bound. This produces: 17.22 -> [16.0, 18.0]. So this is more rough boundary, /// but at least it doesn't lead to incorrect results. - { + if (int32_t scale = DB::getDecimalScale(*non_nullable_type)){ int64_t scaler = lower_bound ? -10 : 10; - int32_t scale = DB::getDecimalScale(*non_nullable_type); while (--scale) scaler *= 10;