Skip to content

Commit

Permalink
[BugFix] fix Array difference largeint (#40876)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhuhe Fang <[email protected]>
  • Loading branch information
fzhedu authored Feb 6, 2024
1 parent be5fda3 commit f899b86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/exprs/vectorized/array_functions.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ private:
dest_data_column->append_nulls(1);
} else {
if constexpr (pt_is_largeint<PT>) {
dest_data_column->append_datum((CppType)0);
dest_data_column->append_datum(
(CppType)(items[i].get<CppType>() - items[i - 1].get<CppType>()));
} else if constexpr (pt_is_integer<PT> || pt_is_boolean<PT>) {
dest_data_column->append_datum(
(int64_t)(items[i].get<CppType>() - items[i - 1].get<CppType>()));
Expand Down

0 comments on commit f899b86

Please sign in to comment.