Closed wolffcm closed 3 months ago
In this example I range over the result produced by the given CSV and then update _time so that its outside of [_start, _stop).
_time
[_start, _stop)
import "csv" import "experimental" data = " #datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double,string,string,string,string #group,false,false,true,true,false,false,true,true,true,true #default,_result,,,,,,,,, ,result,table,_start,_stop,_time,_value,_field,_measurement,tag1,tag2 ,,0,2019-09-20T13:50:00Z,2019-09-20T14:00:00Z,2019-09-20T13:59:00Z,0.016666666666666666,fld,ms,v1,tv2 " csv.from(csv: data) |> range(start: 2019-09-20T13:50:00Z, stop: 2019-09-20T14:00:00Z) |> experimental.set(o: {_time: 2019-09-20T14:00:00Z}) |> window(every: 5m)
This is the result that is produced:
#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double,string,string,string,string #group,false,false,true,true,false,false,true,true,true,true #default,_result,,,,,,,,, ,result,table,_start,_stop,_time,_value,_field,_measurement,tag1,tag2 ,,0,2019-09-20T13:50:00Z,2019-09-20T13:50:00Z,2019-09-20T14:00:00Z,0.016666666666666666,fld,ms,v1,tv2
Note that _start and _stop are both set to the range's start time. This is seems incorrect and confusing.
_start
_stop
It would be better to:
A user hit this issue in 1.7.9 where this related issue is not yet fixed: https://github.com/influxdata/influxdb/pull/14262
Also related: https://github.com/influxdata/flux/issues/2170
This issue has had no recent activity and will be closed soon.
In this example I range over the result produced by the given CSV and then update
_time
so that its outside of[_start, _stop)
.This is the result that is produced:
Note that
_start
and_stop
are both set to the range's start time. This is seems incorrect and confusing.It would be better to:
_start
,_stop
A user hit this issue in 1.7.9 where this related issue is not yet fixed: https://github.com/influxdata/influxdb/pull/14262
Also related: https://github.com/influxdata/flux/issues/2170