From 615af5158b57cf1593fbe69a1c365fc44aede396 Mon Sep 17 00:00:00 2001 From: rrando901 Date: Thu, 15 Feb 2024 08:06:02 -0800 Subject: [PATCH] Add Decimal support to set_agg and set_union (#7936) Summary: Delivers https://github.com/facebookincubator/velox/issues/7935 Pull Request resolved: https://github.com/facebookincubator/velox/pull/7936 Reviewed By: mbasmanova Differential Revision: D53782978 Pulled By: Yuhta fbshipit-source-id: 435af3f6f6115d7349a99ad6338e975574413849 --- .../prestosql/aggregates/SetAggregates.cpp | 26 ++- .../prestosql/aggregates/tests/SetAggTest.cpp | 186 ++++++++++++++++++ .../aggregates/tests/SetUnionTest.cpp | 177 +++++++++++++++++ 3 files changed, 381 insertions(+), 8 deletions(-) diff --git a/velox/functions/prestosql/aggregates/SetAggregates.cpp b/velox/functions/prestosql/aggregates/SetAggregates.cpp index 4f3d3eb65ab1..c83846884fb4 100644 --- a/velox/functions/prestosql/aggregates/SetAggregates.cpp +++ b/velox/functions/prestosql/aggregates/SetAggregates.cpp @@ -385,9 +385,9 @@ class SetUnionAggregate : public SetBaseAggregate { template