Relative offsets are not yet supported from absolute times, but they will be part of the upcoming 1.0.1. release: https://github.com/influxdata/influxdb/pull/7276.
On Wed, Sep 21, 2016 at 7:49 AM, <codeproj...@gmail.com> wrote: > Hi everyone, I have a question about influxql.TimeRange function. I > noticed that with combination with influxql.Reduce function and > influxql.NowValuer struct I can get min and max timestamps from queries like > SELECT SUM("sum") / 60 AS "sum" FROM something WHERE customer = > 'customer' AND time >= now() - 10d GROUP BY time(1d) fill(0) > > now() - 30d part will be correctly transformed on influxql.Reduce stage > and influxql.TimeRange function is able to return needed values. > > But if I try to use queries like > SELECT SUM("sum") / 60 AS "sum" FROM something WHERE customer = > 'customer' AND time >= 2015-05-04T00:00:00Z' - 10d GROUP BY time(1d) fill(0) > > it doesn't work anymore. As far as I can tell, influxql.NowValuer helps by > returning time.Time which then gets correctly used. Is there any way to > parse queries with fixed dates like the one above? > > Dmitry. > > -- > Remember to include the InfluxDB version number with all issue reports > --- > You received this message because you are subscribed to the Google Groups > "InfluxDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to influxdb+unsubscr...@googlegroups.com. > To post to this group, send email to influxdb@googlegroups.com. > Visit this group at https://groups.google.com/group/influxdb. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/influxdb/731127f8-d82e-46e2-b4ef-73395e862bf8%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Sean Beckett Director of Support and Professional Services InfluxDB -- Remember to include the InfluxDB version number with all issue reports --- You received this message because you are subscribed to the Google Groups "InfluxDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+unsubscr...@googlegroups.com. To post to this group, send email to influxdb@googlegroups.com. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/CALGqCvMU7T1P%3D3SXN95ExVj7jLoU8v6bY4g_H3r2vFn1tT%2BGMA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.