How to Pivot Your Data in Flux: Working with Columnar Data
This article discusses how to pivot data in Flux, a functional language for querying time series databases like InfluxDB. Unlike relational databases that structure data in rows, InfluxDB returns data in a columnar format. The author explains the concept of pivoting data and provides examples on how to use the `pivot()` function in Flux to flip data from having fields in separate rows to having them in separate columns. They also demonstrate other ways to pivot data, such as using tags as columns or combining field names with tag values. The article concludes by providing links to related blog posts and resources for further reading on InfluxDB and its functions.
Company
InfluxData
Date published
Oct. 12, 2021
Author(s)
Michael Hall
Word count
1404
Hacker News points
None found.
Language
English