Example of DataFrameClient.query with bind_params #725
Description
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.