test: Add unit tests for expression (#15456)#26577
Open
ericyuliu wants to merge 1 commit into
Open
Conversation
Summary: Pull Request resolved: facebookincubator/velox#15456 Differential Revision: D86727194
Contributor
Reviewer's GuideAdds a new unit test for verifying JSON-to-RowExpression conversion of nested logical expressions (OR of an AND and an equality), ensuring the converter correctly builds the Velox expression tree. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey there - I've reviewed your changes - here's some feedback:
- The nestedOrAnd test is very verbose and would benefit from helper functions to remove duplication when validating CallTypedExpr structures.
- Embedding such a large raw JSON string makes the test fragile; consider using builder APIs or an external fixture to construct test expressions more clearly.
- Consider splitting this long test into smaller, focused cases (e.g., separate AND and OR tests) to isolate failures and improve readability.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The nestedOrAnd test is very verbose and would benefit from helper functions to remove duplication when validating CallTypedExpr structures.
- Embedding such a large raw JSON string makes the test fragile; consider using builder APIs or an external fixture to construct test expressions more clearly.
- Consider splitting this long test into smaller, focused cases (e.g., separate AND and OR tests) to isolate failures and improve readability.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Contributor
|
While not required to merge, please fix the Release Notes section of the PR Description to pass the failing test. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary: Pull Request resolved: facebookincubator/velox#15456
Differential Revision: D86727194