I will report this issue as requested; I just noticed that I’m one minor release behind, so will have to upgrade first (2.2.0 to 2.3.0).
I will try your workaround later.
As to what I’m using InfluxDB for: I’m a retired Enterprise Architect and restarted coding - as a hobby - after a 30 year hiatus upon my retirement in 2011. The code I had an issue with, is part of my PV (solar panels) Grafana dashboard, one of the many I’m using.
Last year I started migrating my code to a new ProxMox server and am slowly converting my code and queries from InfluxDB 1.8 to InfluxDB 2. Flux, though powerful, has a steep learning curve, partially caused by the lack of sophisticated debugging capabilities/error messages.