-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate legacy expressions when splitting for predicate pushdown (#4861
) This fixes a panic when performing predicate pushdown for pipelines such as `export | where "foo" == "bar"`. The issue is that `"foo" == "bar"` is valid expression, but we perform a translation into a format that the catalog understands, which doesn't support expressions like that. Thus, this PR adds a check that validates the expression before returning it.
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Pipelines that begin with `export | where` followed by an expression that does | ||
not depend on the incoming events, such as `export | where 1 == 1`, no longer | ||
cause an internal error. |
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