-
Notifications
You must be signed in to change notification settings - Fork 7k
[Data] - Add Inline Expr Visitor #58675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Data] - Add Inline Expr Visitor #58675
Conversation
Signed-off-by: Goutam <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces an _InlineExprReprVisitor to generate concise string representations for expressions, which improves the readability of logical plans for operators like Filter. The implementation is a good step forward, but I've identified a critical issue regarding operator precedence in the generated strings that could lead to ambiguous or incorrect representations. My review includes suggestions to add parentheses to ensure the correct order of operations is visually preserved. Addressing this will make the feature more robust and reliable.
python/ray/data/_internal/planner/plan_expression/expression_visitors.py
Show resolved
Hide resolved
python/ray/data/_internal/planner/plan_expression/expression_visitors.py
Show resolved
Hide resolved
Signed-off-by: Goutam <[email protected]>
Signed-off-by: Goutam <[email protected]>
Signed-off-by: Goutam <[email protected]>
|
/gemini summary |
Summary of ChangesThis pull request significantly improves the debuggability and clarity of Ray Data's logical plans by replacing generic expression placeholders with detailed, inline string representations of the actual expressions. This change allows users to quickly understand the logic applied within operators like Highlights
Changelog
Activity
|
python/ray/data/_internal/planner/plan_expression/expression_visitors.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Goutam <[email protected]>
Signed-off-by: Goutam <[email protected]>
Signed-off-by: Goutam <[email protected]>
Signed-off-by: Goutam <[email protected]>
## Description Ensure the predicate expr appears correctly for the `Filter` logical op. ## Related issues Closes ray-project#58620 ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. --------- Signed-off-by: Goutam <[email protected]> Signed-off-by: YK <[email protected]>
## Description Ensure the predicate expr appears correctly for the `Filter` logical op. ## Related issues Closes ray-project#58620 ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. --------- Signed-off-by: Goutam <[email protected]>
Description
Ensure the predicate expr appears correctly for the
Filterlogical op.Related issues
Closes #58620
Additional information