grafana / lezer-logql

LogQL lezer grammar
Apache License 2.0
3 stars 4 forks source link

Grammar: Add `drop` and `keep` operations #50

Closed ivanahuckova closed 1 year ago

ivanahuckova commented 1 year ago

Part of https://github.com/grafana/grafana/issues/70187

While working on drop I noticed that in LogQL grammar another similar operations was added - keep so I implemented both.

It follows the same grammar patterns as https://github.com/grafana/loki/blob/main/pkg/logql/syntax/expr.y.