[fix](vectorization) Vectorization decimal arithmetic inconsistent (#8626)

This commit is contained in:
wangbo
2022-03-28 10:12:39 +08:00
committed by GitHub
parent 39717a85a2
commit 726eaa68ea
2 changed files with 8 additions and 6 deletions

View File

@ -205,12 +205,6 @@ struct DecimalBinaryOperation {
ResultType scale_a [[maybe_unused]],
ResultType scale_b [[maybe_unused]], NullMap& null_map) {
size_t size = a.size();
if constexpr (is_division && IsDecimalNumber<B>) {
for (size_t i = 0; i < size; ++i) {
c[i] = apply_scaled_div(a[i], b[i], scale_a, null_map, i);
}
return;
}
/// default: use it if no return before
for (size_t i = 0; i < size; ++i) {