Add filter operation (#1588)

* add filter operation

* add tests

* add tests

* revert debug

* simplify filter

* fix tests

* remove logs
This commit is contained in:
Robert Brennan
2023-03-09 10:30:47 +11:00
committed by GitHub
parent d30941b575
commit 9539877ff6
5 changed files with 102 additions and 0 deletions
+1
View File
@@ -37,6 +37,7 @@ var participleYqRules = []*participleYqRule{
{"MapValues", `map_?values`, opToken(mapValuesOpType), 0},
simpleOp("map", mapOpType),
simpleOp("filter", filterOpType),
simpleOp("pick", pickOpType),
{"FlattenWithDepth", `flatten\([0-9]+\)`, flattenWithDepth(), 0},