mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Merge with master
This commit is contained in:
parent
9753ddc8a0
commit
ce4bf58029
@ -70,7 +70,10 @@ struct ArrayDifferenceImpl
|
||||
using ResultNativeType = typename Result::NativeType;
|
||||
|
||||
ResultNativeType result_value;
|
||||
bool overflow = common::subOverflow(static_cast<ResultNativeType>(curr.value), static_cast<ResultNativeType>(prev), result_value);
|
||||
bool overflow = common::subOverflow(
|
||||
static_cast<ResultNativeType>(curr.value),
|
||||
static_cast<ResultNativeType>(prev.value),
|
||||
result_value);
|
||||
if (overflow)
|
||||
throw Exception(ErrorCodes::DECIMAL_OVERFLOW, "Decimal math overflow");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user