Documentation

first() function

Flux 0.7.0+

The first() function selects the first non-null record from an input table. first() is a selector function.

first()

Empty tables

first() drops empty tables.

Parameters

tables

Input data. Default is piped-forward data (<-).

Examples

The following example uses data provided by the sampledata package to show how first() transforms data.

import "sampledata"

sampledata.int()
  |> first()

View input and output


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.