Alex fed4c74928
Apply suggestions from code review
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
2022-01-11 11:25:21 -05:00

24 lines
786 B
Plaintext

{
"name": "max_length",
"type": "function",
"groups": ["Aggregates"],
"description": "Returns the maximum length of strings from a field or expression.",
"arguments": [{
"arg": "expression",
"description": "sub expression of field to aggregate"
}, {
"arg": "group_by",
"optional": true,
"description": "optional expression to use to group aggregate calculations"
}, {
"arg": "filter",
"optional": true,
"description": "optional expression to use to filter features used to calculate aggregate"
}],
"examples": [{
"expression": "max_length(\"town_name\",group_by:=\"state\")",
"returns": "maximum length of town_name, grouped by state field"
}],
"tags": ["length", "maximum", "strings", "characters", "count", "aggregate"]
}