You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#2989 provides an example of domain-specific parsing that could benefit from a purpose-built function that produces a specific structured record. However, parse-able key/value pairings are likely to show up in other contexts working with generic data, ETL pipelines, and so forth.
For example, consider the following record that contains a string:
{myfield:"country=USA,state=TX,city=Dallas"}
With our human eyes, we can deduce that the , delimiter is being used to separate the key/value pairs, and the = delimiter is being used to separate keys from values. A user may therefore seek Zed functionality to extract these so they can be treated as fields in the record, leading to an end state such as:
{country:"USA",state:"TX",city:"Dallas"}
Zed already has some building blocks that can extract the necessary pieces (e.g. split(), array references, etc.) but it can't currently go all the way to generating the field/value pairs. That's the enhancement this issue is tracking.
@mccanne correctly pointed out that the hard part here is figuring out how we want to present this functionality to the user. Implementing what we decide should be easy.
Just to offer some precedent that should be familiar to some of our users, Splunk's approach to addressing it is described here.
The text was updated successfully, but these errors were encountered:
#2989 provides an example of domain-specific parsing that could benefit from a purpose-built function that produces a specific structured record. However, parse-able key/value pairings are likely to show up in other contexts working with generic data, ETL pipelines, and so forth.
For example, consider the following record that contains a string:
With our human eyes, we can deduce that the
,
delimiter is being used to separate the key/value pairs, and the=
delimiter is being used to separate keys from values. A user may therefore seek Zed functionality to extract these so they can be treated as fields in the record, leading to an end state such as:Zed already has some building blocks that can extract the necessary pieces (e.g.
split()
, array references, etc.) but it can't currently go all the way to generating the field/value pairs. That's the enhancement this issue is tracking.@mccanne correctly pointed out that the hard part here is figuring out how we want to present this functionality to the user. Implementing what we decide should be easy.
Just to offer some precedent that should be familiar to some of our users, Splunk's approach to addressing it is described here.
The text was updated successfully, but these errors were encountered: