Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

bug: bind_params cause InfluxDBClientError: expected field argument #913

Copy link
Copy link
Open
@CunjunYin

Description

@CunjunYin
Issue body actions
  • **InfluxDB version:1.24.0
  • **InfluxDB-python version: 5.3.1
  • **Python version: 3.8.5
  • **Operating system version: Ubuntu 20.04

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 })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.