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.
Error: failed to create initial logical plan: cannot query an empty range
This is an error that occurs after the script is interpreted and just as query planning is starting. The issue is that the time literals in the range are lacking a "Z" at the end. The parser seems to silently accept these literals and produce the same bogus value for the start and stop parameters, and hence Flux thinks that the bounds of the range are empty.
If I enter the following bogus query
I get this error
This is an error that occurs after the script is interpreted and just as query planning is starting. The issue is that the time literals in the
range
are lacking a "Z" at the end. The parser seems to silently accept these literals and produce the same bogus value for thestart
andstop
parameters, and hence Flux thinks that the bounds of therange
are empty.This error is really confusing.