yield() function
The yield()
function indicates the input tables received should be delivered as a result of the query.
Yield outputs the input stream unmodified.
A query may have multiple results, each identified by the name provided to the yield()
function.
Function type: Output
Output data type: Object
yield(name: "custom-name")
yield()
is implicit for queries that do only one thing and are only needed when using multiple sources in a query.
With multiple sources, yield()
is required to specify what is returned, and what name to give it.
Parameters
name
A unique name for the yielded results.
Defaults to "_results"
.
Data type: String
Examples
from(bucket: "example-bucket")
|> range(start: -5m)
|> yield(name: "1")
Related InfluxQL functions and statements:
Bug Reports and Feedback
Thank you for being willing to help test InfluxDB v2.0 alpha! Feedback and bug reports are welcome and encouraged both for InfluxDB and this documentation. Submit feedback using one of the following methods:
- Post in the InfluxData Community
- In the InfluxDB UI, click Feedback in the left navigation bar.
- Submit documentation issues to the InfluxDB 2.0 documentation repository.
- Submit InfluxDB issues to the InfluxDB repository.