grafana / lezer-logql

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

Grammar: add distinct filter support #26

Closed matyax closed 1 year ago

matyax commented 1 year ago

This PR adds support to the DISTINCT filter expression added in https://github.com/grafana/loki/pull/8662

Examples:

{app="order"} | json | distinct id
{app="order"} | json | distinct id, time

Generated tree:

imagen

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

matyax commented 1 year ago

Oh I see. I will update this accordingly.

matyax commented 1 year ago

If I understood correctly, now both grammars should match. Also bumped the version.