Skip to content
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

Ensure Java Compatibility Check for Regex Patterns #11912

Merged

Conversation

SurajAralihalli
Copy link
Collaborator

@SurajAralihalli SurajAralihalli commented Jan 3, 2025

Resolves #11651

This PR updates the Parser.parse() function to include a call to java.util.regex.Pattern.compile(pattern), ensuring that the pattern is validated upfront. If the pattern is not valid in Java, the same error should be raised for both CPU and GPU runs.

This PR also modifies few Scala tests to align with the updated functionality.

Signed-off-by: Suraj Aralihalli <[email protected]>
@SurajAralihalli
Copy link
Collaborator Author

build

Signed-off-by: Suraj Aralihalli <[email protected]>
@gerashegalov
Copy link
Collaborator

the failing spark400 check should succeed now if you rerun it per apache/spark@3ecb290

NVnavkumar
NVnavkumar previously approved these changes Jan 21, 2025
Copy link
Collaborator

@NVnavkumar NVnavkumar left a comment

Choose a reason for hiding this comment

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

LGTM

@SurajAralihalli
Copy link
Collaborator Author

build

1 similar comment
@SurajAralihalli
Copy link
Collaborator Author

build

Signed-off-by: Suraj Aralihalli <[email protected]>
Signed-off-by: Suraj Aralihalli <[email protected]>
@SurajAralihalli
Copy link
Collaborator Author

build

@SurajAralihalli SurajAralihalli merged commit 3d41bae into NVIDIA:branch-25.02 Jan 22, 2025
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Parse regular expressions using JDK to make error behavior more consistent between CPU and GPU
3 participants