-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TypeError in create_match_filter for Composite Keys (#1693)
**Old Code Behavior:** Even if there's only one such condition, the code wraps it in an Or() operator. But Or() is meant to combine two or more conditions (like “condition A OR condition B”). If you give it only one condition, it complains because it expects a second condition. **New Code Behavior:** The new change checks how many conditions you have. If there's only one condition, it simply returns that condition. If there are more than one, it uses Or() to combine them. --------- Co-authored-by: Fokko Driesprong <[email protected]>
- Loading branch information
Showing
2 changed files
with
35 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
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