diff --git a/velox/exec/tests/AggregateFunctionRegistryTest.cpp b/velox/exec/tests/AggregateFunctionRegistryTest.cpp index e0b2015fa576..d029865e588e 100644 --- a/velox/exec/tests/AggregateFunctionRegistryTest.cpp +++ b/velox/exec/tests/AggregateFunctionRegistryTest.cpp @@ -266,7 +266,7 @@ TEST_F(FunctionRegistryTest, multipleNames) { "aggregate_func2", {BIGINT(), DOUBLE()}, BIGINT(), ARRAY(BIGINT())); auto registrationResults = registerAggregateFunction( - {std::string("aggregate_func2"), std::string("aggregate_func3")}, + std::vector{"aggregate_func2", "aggregate_func3"}, signatures, factory, /*registerCompanionFunctions*/ true,