Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Loading