Skip to content

Commit

Permalink
Add where command to new query pipeline (siglens#1762)
Browse files Browse the repository at this point in the history
* Make PEG give "where" command block

* Fix issue passing QueryAggregators

* Add util to remove elements from a slice

* Add IQR method to discard certain rows

* Implement "where" logic

* Add comment
  • Loading branch information
AndrewHess authored Oct 17, 2024
1 parent 7d93e86 commit ac66d6a
Show file tree
Hide file tree
Showing 7 changed files with 1,982 additions and 1,823 deletions.
4 changes: 4 additions & 0 deletions pkg/ast/pipesearch/searchQueryParser.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,10 @@ func SearchQueryToASTnode(node *ast.Node, boolNode *ASTNode, qid uint64, forceCa
}

func searchPipeCommandsToASTnode(node *QueryAggregators, qid uint64) (*QueryAggregators, error) {
if config.IsNewQueryPipelineEnabled() {
return node, nil
}

var err error
var pipeCommands *QueryAggregators
//todo return array of queryaggs
Expand Down
Loading

0 comments on commit ac66d6a

Please sign in to comment.