You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{InfluxDB}from'@influxdata/influxdb-client'consttoken='### enter token ###';constqueryApi=newInfluxDB({url: 'http://localhost:8086', token}).getQueryApi('Org');queryApi.queryRows(`import "experimental/array" array.from(rows: [ {_measurement: "m0", _field: "f0", _value: true, _time: 2020-01-01T00:00:00Z,}, {_measurement: "m0", _field: "f1", _value: true, _time: 2020-01-01T00:00:00Z,}, {_measurement: "m0", _field: "f0", _value: true, _time: 2020-01-01T01:00:00Z,}, // no entry for f1 at 01:00:00 -> _value will be set to null by pivot() ]) |> pivot(rowKey: ["_time"], columnKey: ["_field"], valueColumn: "_value")`,{next: (row,tableMeta)=>{console.log(`At ${tableMeta.get(row,'_time')} f0 is ${tableMeta.get(row,'f0')} and f1 is ${tableMeta.get(row,'f1')}`);},error: e=>console.log(e),complete: ()=>{},});
Expected behavior
At 2020-01-01T00:00:00Z f0 is true and f1 is true
At 2020-01-01T01:00:00Z f0 is true and f1 is null
Actual behavior
At 2020-01-01T00:00:00Z f0 is true and f1 is true
At 2020-01-01T01:00:00Z f0 is true and f1 is false
Specifications
Code sample to reproduce problem
Expected behavior
Actual behavior
Additional info
I think this line should be changed to
The text was updated successfully, but these errors were encountered: