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
{{ message }}
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
sample query
client.query(query='SELECT mean( $var ) FROM "TABLE" WHERE time > $peroid GROUP BY time(10m) fill(0);', bind_params ={"var": name, "peroid":time })
ERROR: InfluxDBClientError: expected field argument in mean()
when replace $var with name everything works fine
client.query(query='SELECT mean( "NAME" ) FROM "TABLE" WHERE time > $peroid GROUP BY time(10m) fill(0);', bind_params ={"var": name, "peroid":time })
The text was updated successfully, but these errors were encountered:
bind_params is (AFAIK) only supported in the WHERE-clause, not in the SELECT.
You might have to add specific field-validation instead of using bind_params for that.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
sample query
client.query(query='SELECT mean( $var ) FROM "TABLE" WHERE time > $peroid GROUP BY time(10m) fill(0);', bind_params ={"var": name, "peroid":time })
ERROR: InfluxDBClientError: expected field argument in mean()
when replace $var with name everything works fine
client.query(query='SELECT mean( "NAME" ) FROM "TABLE" WHERE time > $peroid GROUP BY time(10m) fill(0);', bind_params ={"var": name, "peroid":time })
The text was updated successfully, but these errors were encountered: