mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-25 03:00:49 +00:00
Fixed exception message
This commit is contained in:
parent
62053314bb
commit
7394d3e73a
@ -156,9 +156,8 @@ private:
|
|||||||
"The second argument of function " + getName() + " (number of buckets) must be positive number", ErrorCodes::BAD_ARGUMENTS);
|
"The second argument of function " + getName() + " (number of buckets) must be positive number", ErrorCodes::BAD_ARGUMENTS);
|
||||||
|
|
||||||
if (unlikely(static_cast<UInt64>(buckets) > Impl::max_buckets))
|
if (unlikely(static_cast<UInt64>(buckets) > Impl::max_buckets))
|
||||||
throw Exception("The value of the second argument of function " + getName() + " (number of buckets) is not fit to "
|
throw Exception("The value of the second argument of function " + getName() + " (number of buckets) must not be greater than "
|
||||||
+ DataTypeNumber<BucketsType>().getName(),
|
+ std::to_string(Impl::max_buckets), ErrorCodes::BAD_ARGUMENTS);
|
||||||
ErrorCodes::BAD_ARGUMENTS);
|
|
||||||
|
|
||||||
return static_cast<BucketsType>(buckets);
|
return static_cast<BucketsType>(buckets);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user