Skip to content

Commit

Permalink
Making changes to sum aggregate.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgpai committed Apr 10, 2024
1 parent 113502c commit ad266a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,11 @@ jobs:
rm -rfv /tmp/aggregate_fuzzer_repro/*
chmod -R 777 /tmp/aggregate_fuzzer_repro
chmod +x velox_aggregation_fuzzer_test
echo "signatures folder"
ls /tmp/signatures/
echo "Biased functions:"
cat /tmp/signatures/presto_aggregate_bias_functions
echo "Running Fuzzer"
./velox_aggregation_fuzzer_test \
--seed ${RANDOM} \
--duration_sec $DURATION \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,7 @@ exec::AggregateRegistrationResult registerMinMaxBy(
.argumentType("C")
.build());
const std::vector<std::string> supportedCompareTypes = {
"boolean",
"tinyint",
"smallint",
"integer",
Expand Down
2 changes: 1 addition & 1 deletion velox/functions/prestosql/aggregates/SumAggregate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ exec::AggregateRegistrationResult registerSum(
.build(),
};

for (const auto& inputType : {"tinyint", "smallint", "integer", "bigint"}) {
for (const auto& inputType : {"smallint", "integer", "bigint"}) {
signatures.push_back(exec::AggregateFunctionSignatureBuilder()
.returnType("bigint")
.intermediateType("bigint")
Expand Down

0 comments on commit ad266a4

Please sign in to comment.