Check if a function name is an aggregate */
| 4340 | |
| 4341 | /* Check if a function name is an aggregate */ |
| 4342 | static bool is_aggregate_func(const char *func) { |
| 4343 | return func && |
| 4344 | (strcmp(func, "COUNT") == 0 || strcmp(func, "SUM") == 0 || strcmp(func, "AVG") == 0 || |
| 4345 | strcmp(func, "MIN") == 0 || strcmp(func, "MAX") == 0 || strcmp(func, "COLLECT") == 0); |
| 4346 | } |
| 4347 | |
| 4348 | /* Grow a string list for one more entry at `idx`: the capacity doubles at |
| 4349 | * every power of two, so n appends cost O(n) copying, not O(n^2). */ |
no outgoing calls
no test coverage detected