| 161 | }; |
| 162 | |
| 163 | TEST_F(FunctionRegistryTest, hasAggregateFunctionSignature) { |
| 164 | testResolveAggregateFunction( |
| 165 | "aggregate_func", {BIGINT(), DOUBLE()}, BIGINT(), ARRAY(BIGINT())); |
| 166 | testResolveAggregateFunction( |
| 167 | "aggregate_func", {DOUBLE(), DOUBLE()}, DOUBLE(), ARRAY(DOUBLE())); |
| 168 | testResolveAggregateFunction( |
| 169 | "aggregate_func", |
| 170 | {ARRAY(BOOLEAN()), ARRAY(BOOLEAN())}, |
| 171 | ARRAY(BOOLEAN()), |
| 172 | ARRAY(ARRAY(BOOLEAN()))); |
| 173 | testResolveAggregateFunction("aggregate_func", {}, DATE(), DATE()); |
| 174 | } |
| 175 | |
| 176 | TEST_F(FunctionRegistryTest, hasAggregateFunctionSignatureWrongFunctionName) { |
| 177 | testResolveAggregateFunction( |
nothing calls this directly
no test coverage detected