Replies: 2 comments 1 reply
-
|
Hi @jlambatl, I cannot think anything apart from development effort that is blocking |
Beta Was this translation helpful? Give feedback.
-
|
@pront I've now taken the time to look more closely at what's involved in adding the required features. I wanted to loop back around now that I've a better understanding of how VRL's internals work. It appears that VRL currently lacks ControlFlow support. To add break, continue, and other more advanced features, On the surface, this seems like it could be made a non-breaking change because users of functions like It seems that if this approach is followed, it could be non-breaking; however, this is the first time I've delved into compilers and parsers of this type in some time. I'm keen to understand how your team sees the problem and solution so that I can make sure the approach is agreeable before I start working on it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I notice that the VRL documentation states that the break command/syntax is reserved for future use. Is there anything blocking that from being implemented?
There's context; we have several large payloads that we are processing with VRL in vector. The current implementation requires us to go through the entire array or object, even when there are no further matches. We have tried various approaches with filter and map_values with little difference in overall throughput. Maybe there's another way that we are missing; otherwise, we would be happy to submit a PR to introduce break.
Happy to discuss this further if there are other options beyond break, or potentially other avenues we should explore.
Beta Was this translation helpful? Give feedback.
All reactions