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
Function type: Output
Output data type: Object
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.
A unique name for the yielded results.
Data type: String
from(bucket: "example-bucket") |> range(start: -5m) |> yield(name: "1")
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support or submit feedback, the following resources are available:
- Post in the InfluxData Community.
- Submit documentation issues to the InfluxDB 2.0 documentation repository.
- Submit InfluxDB issues to the InfluxDB repository.
For our InfluxDB Cloud customers, InfluxData Support is also available.