last() function
last()
returns the last row with a non-null value from each input table.
Note: last()
drops empty tables.
Function type signature
(<-tables: stream[A], ?column: string) => stream[A] where A: Record
Parameters
column
Column to use to verify the existence of a value.
Default is _value
.
If this column is null
in the last record, last()
returns the previous
record with a non-null value.
tables
Input data. Default is piped-forward data (<-
).
Examples
Return the last row from each input table
import "sampledata"
sampledata.int()
|> last()
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.