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
{{ message }}
Repository navigation
LogQL: unwrap conversion functions (duration(), duration_seconds(), bytes()) are rejected #990
These matter in practice: unwrap duration(...) is the standard way to turn a text latency label into a numeric metric, which is most of what LogQL metric queries over logs are used for.
Scope
Grammar rule for unwrap <convOp>(<label>) in reader/logql/logql_parser, plus the conversion applied in the transpiler — duration/duration_seconds parse a Go duration string to seconds, bytes parses a byte size to bytes.
Credit
Found via @tsouza's parser-pin work in #925. The PR pinned unwrap duration(duration) as a must-fail case; the Loki grammar shows it should succeed — and the other two conversion functions turned out to be missing too.
Activity
fix(logql): support unwrap conversion functions (duration, bytes)
fix(logql): support unwrap conversion functions (duration, bytes) (me…