influxdata / influxdata/influxdb
non-ascii char in FIELD KEY breaks python influxdb InfluxDBClient
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
Hi all
This perhaps should be an issue raised in the python package repo?
This seems to be a corner case bug.
*versions*
python 3.11
influxdb 1.8
influxDB shell version: 1.8.10
AWS ubuntu instance FWIW
In the influxDB shell version: 1.8.10 ,there is no issue with such a query.
With the python package , however the following query:
```SELECT * FROM measurement```
gives the following error:
```Error executing query: 'utf-8' codec can't decode byte 0xb5 in position 9: invalid start byte``
The offending KEY in measurement is
``` value_in_�IU/ml ``` or could also be ```value_in_µIU/ml ``` (it was a previous lib mismatch that wrote that glitchy byte)
```SELECT foo,bar,whatever,value FROM measurement```
gives no error
I hope this helps
E
Contributor guide
Research direction
Start by reproducing the failure with Python 3.11, influxdb 1.8, and InfluxDB 1.8.10 using SELECT * against a measurement containing the shown non-ASCII field key, then compare it with the explicit-column query. Determine whether the fix belongs in the Python client or InfluxDB server and add regression coverage for the failing query once the owning component is identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100