[Data] Ensure consistent nan_is_null semantics in unique_post_fn of encoder#62623
Merged
goutamvenkat-anyscale merged 1 commit intoApr 15, 2026
Merged
Conversation
…ncoder.py Signed-off-by: Ayush Kumar <ayushk7102@gmail.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the null-dropping logic in the gen_value_index_arrow_from_arrow function within the Ray Data encoder preprocessor. The change replaces pc.drop_null with a manual filter that explicitly treats NaNs as nulls when drop_na_values is enabled, ensuring more robust handling of missing data. I have no feedback to provide as there are no review comments to evaluate.
goutamvenkat-anyscale
approved these changes
Apr 15, 2026
f7bf8e0
into
ray-project:master
6 of 7 checks passed
HLDKNotFound
pushed a commit
to chichic21039/ray
that referenced
this pull request
Apr 22, 2026
…ncoder (ray-project#62623) ## Description This is a follow-up PR to ray-project#62618 to ensure consistent behavior in `gen_value_index_arrow_from_arrow` of `encoder.py`. Previously, if `drop_na_values` was True, we were dropping nulls (and not NaNs). This PR ensures that we drop NaNs as well Signed-off-by: Ayush Kumar <ayushk7102@gmail.com>
Lucas61000
pushed a commit
to Lucas61000/ray
that referenced
this pull request
May 15, 2026
…ncoder (ray-project#62623) ## Description This is a follow-up PR to ray-project#62618 to ensure consistent behavior in `gen_value_index_arrow_from_arrow` of `encoder.py`. Previously, if `drop_na_values` was True, we were dropping nulls (and not NaNs). This PR ensures that we drop NaNs as well Signed-off-by: Ayush Kumar <ayushk7102@gmail.com>
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.
Description
This is a follow-up PR to #62618 to ensure consistent behavior in
gen_value_index_arrow_from_arrowofencoder.py. Previously, ifdrop_na_valueswas True, we were dropping nulls (and not NaNs). This PR ensures that we drop NaNs as well