mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
added another constexpr branch
This commit is contained in:
parent
205db4fa92
commit
7db7a9ef5b
@ -1022,13 +1022,17 @@ public:
|
|||||||
scale_a = right.getScaleMultiplier();
|
scale_a = right.getScaleMultiplier();
|
||||||
else if constexpr(result_is_decimal)
|
else if constexpr(result_is_decimal)
|
||||||
scale_a = type.scaleFactorFor(left, is_multiply);
|
scale_a = type.scaleFactorFor(left, is_multiply);
|
||||||
else // The result is a floating point, so we need to get the scale explicitly
|
else if constexpr(dec_a)
|
||||||
scale_a = left.getScale();
|
scale_a = left.getScale();
|
||||||
|
else
|
||||||
|
scale_a = 0.0; //won't be used, just to silence the warning
|
||||||
|
|
||||||
if constexpr(result_is_decimal)
|
if constexpr(result_is_decimal)
|
||||||
scale_b = type.scaleFactorFor(right, is_multiply || is_division);
|
scale_b = type.scaleFactorFor(right, is_multiply || is_division);
|
||||||
else // Same
|
else if constexpr(dec_b)
|
||||||
scale_b = right.getScale();
|
scale_b = right.getScale();
|
||||||
|
else
|
||||||
|
scale_b = 0.0; //same
|
||||||
|
|
||||||
/// non-vector result
|
/// non-vector result
|
||||||
if (col_left_const && col_right_const)
|
if (col_left_const && col_right_const)
|
||||||
|
Loading…
Reference in New Issue
Block a user