In InfluxDB, only fields can be passed to functions. The timestamp is a
special column and cannot be referenced outside the WHERE clause.

Perhaps ELAPSED()
<http://docs.influxdata.com/influxdb/v1.0/query_language/functions/#elapsed>
is what you need?

On Thu, Sep 29, 2016 at 6:15 PM, William Cork <[email protected]> wrote:

> My attempts to call DERIVATIVE on the time column have failed miserably.
>
> > SELECT DERIVATIVE(time, 1s) FROM BPM WHERE pvName =
> 'BR1:BPM2:wfr:TBT:armed' GROUP BY pvName LIMIT 50
> ERR: error parsing query: at least 1 non-time field must be queried
> > SELECT pvName,DERIVATIVE(time, 1s) FROM BPM WHERE pvName =
> 'BR1:BPM2:wfr:TBT:armed' GROUP BY pvName LIMIT 50
> ERR: error parsing query: mixing aggregate and non-aggregate queries is
> not supported
>
> Is there a way to characterise change in time in a series with Influx or
> does this calculation have to happen client side?
>
> Thanks.
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/2ae4ca3b-06db-4637-bd9c-4b7b6133bff5%40googlegroups.com
> <https://groups.google.com/d/msgid/influxdb/2ae4ca3b-06db-4637-bd9c-4b7b6133bff5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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 [email protected].
To post to this group, send email to [email protected].
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/CALGqCvP5A2WaGhYWh4aFu9Jv2DqjhvQPM6q86WoGLjiSuJi3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to