Skip to content

Conversation

goutamvenkat-anyscale
Copy link
Contributor

@goutamvenkat-anyscale goutamvenkat-anyscale commented Oct 17, 2025

Thank you for contributing to Ray! 🚀
Please review the Ray Contribution Guide before opening a pull request.

Description

The old expression evaluator did not correctly handle is_in which failed tests in test_expression_evaluator

Related issues

Link related issues: "Fixes #1234", "Closes #1234", or "Related to #1234".

Fixes #57820

Additional information

Optional: Add implementation details, API changes, usage examples, screenshots, etc.

Signed-off-by: Goutam <goutam@anyscale.com>
@goutamvenkat-anyscale goutamvenkat-anyscale requested a review from a team as a code owner October 17, 2025 18:21
@goutamvenkat-anyscale goutamvenkat-anyscale added go add ONLY when ready to merge, run all tests data Ray Data-related issues labels Oct 17, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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 addresses a bug in the expression evaluator concerning the is_in operation. The changes correctly replace the erroneous .is_in() method call on PyArrow expression objects with the appropriate pyarrow.compute.is_in function. This correction is applied to both the in operator within comparison expressions and the is_in function call handler. The fix is accurate and effectively resolves the described issue.


comparators = [self.visit(comp) for comp in node.comparators]

op = node.ops[0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove test_expression_evaluator.py from semgrep.yml, and also add the pytest.main to the bottom of test_expression_evaluator.py?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Signed-off-by: Goutam <goutam@anyscale.com>
Signed-off-by: Goutam <goutam@anyscale.com>
Signed-off-by: Goutam <goutam@anyscale.com>
@bveeramani bveeramani merged commit 194ddf8 into ray-project:master Oct 17, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data Ray Data-related issues go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Data] test_expression_evaluator.py is broken - not tested in CI Ray fails to serialize self-reference objects

3 participants