This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
VRL: coerce string into array #21070
Labels
type: feature
A value-adding code addition that introduce new functionality.
A note for the community
Use Cases
Hello everyone!
I have a csv file where some fields can be either empty or array. For example:
I'm using function parse_csv that results in array with strings inside, but array fields from csv are also doublequoted as strings.
Code:
Result
I want to coerce value back to Array from String, because they have incorrect type after VRL transforms.
Thanks for the help in advance!
Attempted Solutions
I do understand that I can do it via Lua script or with additional string manipulations, but still it's better and more "clean" to do it as additional function.
Proposal
No response
References
Based on discussion
Version
0.40.0
The text was updated successfully, but these errors were encountered: