project Utilities / Python Influxdb Downsample avatar

utilities/python_influxdb_downsample#14: Duplicate column names



Issue Information

Issue Type: issue
Status: opened
Reported By: btasker
Assigned To: btasker

Milestone: backlog
Created: 07-Feb-23 00:26


Labels: Bug

Description

Testing the new docker build I got the following

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

The response contains columns with duplicated names: '['', 'result', 'table', '_start', '_stop', '_time', '_value', '_field', '_measurement', 'host', 'measured_from', 'method', 'result', 'server', 'status_code']'.

It's because my schema includes a field called result and Flux provides a table number with result.

Probably worth catching that to make sure the right one is accessed (it is in this case)



Toggle State Changes

Activity


assigned to @btasker