mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
dbms: Server: Fixed computation overflow issue. [#METR-16435]
This commit is contained in:
parent
baaf5d0485
commit
28822deffb
@ -165,7 +165,7 @@ BlockInputStreams MergeTreeDataSelectExecutor::read(
|
||||
|
||||
UInt64 sampling_column_value_lower_limit;
|
||||
UInt64 sampling_column_value_upper_limit;
|
||||
UInt64 upper_limit = static_cast<UInt64>(relative_sample_size * sampling_column_max);
|
||||
UInt64 upper_limit = static_cast<UInt64>(static_cast<long double>(relative_sample_size) * sampling_column_max);
|
||||
|
||||
if (settings.parallel_replicas_count > 1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user