Skip to content
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.

Example of DataFrameClient.query with bind_params  #725

Open
@msshroff

Description

@msshroff

Hi

I am using version 5.2.2 of influxdb and trying to use the new feature bind_params as documented in here

Also saw the information provided in blog here

I see below issue:
import influxdb
import json
print(f'Using module version : {influxdb.__version__}')
source_client = influxdb.DataFrameClient(host='localhost', port=8086)
source_client.switch_database('test_db')
query_text = 'select * from TEST_MEASUREMENT where app=$app_val limit 10'
input_dict = {'app_val':'AddressLookup'}
source_results = source_client.query(query_text,bind_params=input_dict)

*** Output ***
Using module version : 5.2.2

Traceback (most recent call last):
File "influx_bind_param.py", line 13, in <module>
source_results = source_client.query(query_text,bind_params=input_dict)
TypeError: query() got an unexpected keyword argument 'bind_params'

Seems some confusion in the versioning.

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