debug.unpivot() function

debug.unpivot() removes the _time column and any other column not in the group key and outputs a new table with _field and _value columns pairs. The output stream retains the group key and all group key columns of the input stream. Specialized to transform the pivoted output from iox.from() into the unpivoted format.

Function type signature
(<-tables: stream[{A with _time: time}]) => stream[{B with _value: C, _field: string}] where A: Record, B: Record
For more information, see Function type signatures.



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

Was this page helpful?

Thank you for your feedback!

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.