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.
failed to compile query: error calling function "limit": error calling function "sort": unused arguments [cols]
5: Huh? I had to read the query closely to find limit, since there was no positional information this time. Grepped the flux codebase for limit. Parameters look right. Grepped the flux codebase for sort. Looks like it takes columns now. Why was this error different?
All of the feedback should have been condensible to a single error message. Returning only the first type inference error unnecessarily drew out 4 extra feedback cycles.
I'm trying to run a script that used to compile and run. Here's the feedback cycle:
1: Original query:
2: Okay, the colKey parameter must have been renamed to columnKey:
3: Okay, valueCol -> valueColumn too:
4: Oops, other pivot references need parameter name updates too:
5: Huh? I had to read the query closely to find limit, since there was no positional information this time. Grepped the flux codebase for limit. Parameters look right. Grepped the flux codebase for sort. Looks like it takes
columns
now. Why was this error different?Query compiled successfully now.
All of the feedback should have been condensible to a single error message. Returning only the first type inference error unnecessarily drew out 4 extra feedback cycles.