Skip to content

Conversation

elliot-barn
Copy link
Contributor

@elliot-barn elliot-barn commented Oct 9, 2025

adding pre commit and ci semgrep check for data test files

semgrep test for missing pytest.main in python/ray/data/tests/test_arrow_serialization.py: https://buildkite.com/ray-project/microcheck/builds/28269#0199cb94-4aab-4f48-9fad-776f90563d53

Pre commit local test test_should_fail.py
image

@elliot-barn elliot-barn marked this pull request as ready for review October 10, 2025 06:47
@elliot-barn elliot-barn requested a review from a team as a code owner October 10, 2025 06:47
@ray-gardener ray-gardener bot added core Issues that should be addressed in Ray Core devprod labels Oct 10, 2025
@aslonnie aslonnie self-requested a review October 10, 2025 17:21
@aslonnie aslonnie enabled auto-merge (squash) October 10, 2025 17:21
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Oct 10, 2025
@aslonnie
Copy link
Collaborator

data tests are failing?

Copy link
Collaborator

@aslonnie aslonnie left a comment

Choose a reason for hiding this comment

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

data team or @bveeramani should be able to help merge. otherwise, let me know.

bveeramani and others added 2 commits October 10, 2025 16:43
elif func_name == "isin":
if len(node.args) != 2:
raise ValueError("is_in() expects exactly two arguments")
raise ValueError("isin() expects exactly two arguments")
Copy link

Choose a reason for hiding this comment

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

Bug: PyArrow API Mismatch Causes Expression Error

The expression evaluator's change from is_in to isin is incorrect for PyArrow expressions. PyArrow's API uses is_in(), not isin(), which will cause AttributeError at runtime when generating PyArrow expressions. This appears to be an accidental functional change that could break existing code.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core devprod go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants