TL;DR InfluxDB Tech Tips: Multiple Aggregations with yield() in Flux
The yield() function in Flux is used to determine which table inputs should be returned in a script and assigns a name to the output of a query. This function allows multiple aggregations to be returned simultaneously by invoking multiple yield() functions within a single Flux script. By using variables, users can store the base query and reference it for multiple aggregations without querying the entire dataset multiple times. The yield() function is important because it enables the return of multiple table streams from a single Flux script at different points in time.
Company
InfluxData
Date published
Sept. 27, 2021
Author(s)
Anais Dotis-Georgiou
Word count
1445
Language
English
Hacker News points
None found.