-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NodeReplacer for BinaryExpr where it is a Literal and
VectorSelector/AggregateExpr If the query is something like `foo>1` prior to this patch we unwrap and send down to each downstream `foo` and then do the comparison (binaryExpr) in promxy. This is non-ideal as we are sending some data back that could have been dropped at the remote end. Although this is a great performance optimization we will need to be careful when adding cases to this. For BinaryExprs to be sent to each servergroup in a `valid` way the query must be "local" to a given servergroup. For example; `sum(foo)>1` would *not* be safe to send downstream as `sum(foo)` requires adding across a variety of servergroups to determine the correct value. Fixes #673
- Loading branch information
Showing
2 changed files
with
146 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters