influxdb-client-python icon indicating copy to clipboard operation
influxdb-client-python copied to clipboard

warnings returned when using example program on https://influxdb-client.readthedocs.io/en/latest/

Open schaefer01 opened this issue 1 year ago • 0 comments

Specifications

  • Client Version: '1.39.0'
  • InfluxDB Version: v2.7.4
  • Platform: 20.04.6 LTS

Code sample to reproduce problem

see https://influxdb-client.readthedocs.io/en/latest/ at "Getting Started"

Expected behavior

I expected no warnings

Actual behavior

/home/ubuntu/radioconda/lib/python3.10/site-packages/influxdb_client/client/flux_csv_parser.py:334: UserWarning: The response contains columns with duplicated names: '['', 'result', 'table', '_start', '_stop', '_time', '_value', '_field', '_measurement', 'org', 'result']'.

You should use the 'record.row' to access your data instead of 'record.values' dictionary.

warnings.warn(message, UserWarning) The response contains columns with duplicated names: '['', 'result', 'table', '_start', '_stop', '_time', '_value', '_field', '_measurement', 'org', 'result']'.

You should use the 'record.row' to access your data instead of 'record.values' dictionary

Additional info

No response

schaefer01 avatar Jan 19 '24 14:01 schaefer01