remap-lang: allow negative indexing into arrays #5546
Labels
domain: vrl
Anything related to the Vector Remap Language
needs: more demand
Needs more demand before work can begin, +1 or comment to support.
type: enhancement
A value-adding code change that enhances its existing functionality.
Milestone
given this:
This works:
This does not:
There is no technical reason we can't implement this, but the language grammar does not support negative index numbers at the moment.
This was either a deliberate choice to reduce language complexity, or just something we haven't got to yet (I don't know the answer).
Regardless, people seem to run into this limitation (see https://discord.com/channels/742820443487993987/746070591097798688/787115063500472331), so it's worth considering supporting negative indexing in path queries.
The text was updated successfully, but these errors were encountered: