Content Deep Dive
How to Pivot Your Data in Flux: Working with Columnar Data
Blog post from InfluxData
Post Details
Company
Date Published
Author
Michael Hall
Word Count
1,404
Language
English
Hacker News Points
-
Summary
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.