mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 17:20:50 +00:00
Update FunctionsConversion.h
This commit is contained in:
parent
935b7edb48
commit
1e78445a25
@ -996,11 +996,11 @@ struct ToIntMonotonicity
|
||||
/// If type is expanding
|
||||
if (sizeof(T) > size_of_type)
|
||||
{
|
||||
///If convert signed -> signed or unsigned -> signed, then function is monotonic.
|
||||
/// If convert signed -> signed or unsigned -> signed, then function is monotonic.
|
||||
if (std::is_signed_v<T> || type.isValueRepresentedByUnsignedInteger())
|
||||
return {true, true, true};
|
||||
|
||||
///If arguments from the same half, then function is monotonic.
|
||||
/// If arguments from the same half, then function is monotonic.
|
||||
if ((left.get<Int64>() >= 0) == (right.get<Int64>() >= 0))
|
||||
return {true, true, true};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user