Skip to content

remap-lang: allow querying into result of functions #5453

@JeanMertz

Description

@JeanMertz

We currently support querying the root object using paths (e.g. .foo.bar) and also variables ($foo.bar since #5094).

We've had at least one report thus far requesting to query the result of functions:

.url = "https://vector.dev"
.scheme = parse_url(.url).scheme // parse_url returns a `Value::Map`
.scheme // "https"

I'm not necessarily advocating we support this (it might be a slippery slope from here to supporting methods, although I don't think that's necessarily the case), but it's worth tracking this, given that more people might be looking for a similar feature.

Metadata

Metadata

Assignees

Labels

domain: vrlAnything related to the Vector Remap Languagetype: enhancementA value-adding code change that enhances its existing functionality.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions