influxdata / flux

Flux is a lightweight scripting language for querying databases (like InfluxDB) and working with data. It's part of InfluxDB 1.7 and 2.0, but can be run independently of those.
https://influxdata.com
MIT License
769 stars 153 forks source link

interpolate fails if there are string fields #5461

Closed sayu-agiliad closed 7 months ago

sayu-agiliad commented 9 months ago

Influx allows for "fields" of type "string" especially when using telegraf json parser with json_string_fields, However when I try to use interpolate on such a measurement, I get the below error " runtime error @6:6-6:35: linear: cannot interpolate string values; expected float values"

It would be helpful if interpolated string fields behave like "fill" and get the last value.

github-actions[bot] commented 7 months ago

This issue has had no recent activity and will be closed soon.