Hello everyone one, I’m new to InfluxDB and Flux, and I’m having a hard time using union(columns: [“table1”,“table2”]) then sort(columns: ["_time"]).
I managed to unify 2 tables, but the rows doesn’t mix the data, it keeps like:
all data from table 1(sorted by time)
all data from table 2(sorted by time)
Instead of have the data mixed and sorted as one:
Anybody know what could be done to get the proper result?
after exploring a bunch, I discovered that _measurement (my guess), was auto sorting the column, which kept them separated. When I used keep() function on the column i needed, sort() worked pretty well.