Skip to main content

parse

Class: core · Streaming: row-at-a-time

Schema-on-read extraction stage (RFC-002 §7). Never deletes columns; never silently overwrites non-null fields.

Signature

| parse <format> [from=<field>] [into=<captures>] [prefix=<string>] [on_error=<enum>]

Positional Arguments

NameTypeRequiredDescription
formatformatYesjson, logfmt, kv(...), pattern "...", regex r"...", a named format, or first_of(f1, f2, ...)

Options

NameTypeDefaultDescription
fromfield_rawinput field
intocaptures-typed captures: into (status as int, dur as duration)
prefixstring-namespace prefix for extracted fields
on_errorenumpropagate- Values: propagate, null, drop, strict.

Examples

parse json
parse first_of(json, logfmt)
parse regex r"user=(?<user>\w+)" into (user as string)

Generated from the LynxFlow registry. See RFC-002 for the full language specification.