Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
minMap
Description
TheMap combinator can be applied to the min
function to calculate the minimum value in a Map according to each key, using the minMap
aggregate combinator function.
Example usage
In this example, we’ll create a table that stores status codes and their counts for different timeslots, where each row contains a Map of status codes to their corresponding counts. We’ll useminMap to find the minimum count for each status code within each timeslot.
Query
minMap function will find the minimum count for each status code within each timeslot. For example:
- In timeslot ‘2000-01-01 00:00:00’:
- Status ‘a’: 15
- Status ‘b’: 25
- Status ‘c’: min(35, 45) = 35
- Status ‘d’: 55
- Status ‘e’: 65
- In timeslot ‘2000-01-01 00:01:00’:
- Status ‘d’: 75
- Status ‘e’: 85
- Status ‘f’: min(95, 105) = 95
- Status ‘g’: min(115, 125) = 115
Response