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

[SPARK-50395][SQL] Fix malformed URI syntax in Windows #48934

Closed
wants to merge 1 commit into from

Conversation

xupefei
Copy link
Contributor

@xupefei xupefei commented Nov 22, 2024

What changes were proposed in this pull request?

This PR fixes an issue that the Artifact Manager is using a malformed URI string for Class Dir in windows. The issue is caused by using a platform-specific File.separator instead of /: Windows's file separator is \, which results in a wrong URI string:

java.net.URISyntaxException: Illegal character in path at index 88:
spark://xxxx:57839/artifacts\bd3e1ffe-50d2-412c-8fe4-911ae160c251\classes\

This failure is captured by the scheduled Windows build on master, such as https://github.com/apache/spark/actions/runs/11958030827.

To fix this issue we just make sure that the separator is always / on all OSes.

Why are the changes needed?

Fix a compilation failure in Windows.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Tested on my own fork with a modified Workflow that runs on PR: xupefei#1, https://github.com/xupefei/spark/actions/runs/11970330735/job/33372836765?pr=1

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label Nov 22, 2024
@xupefei xupefei changed the title [SPARK-50395][Connect][SQL] Fix malformed URI syntax in Windows [SPARK-50395][SQL] Fix malformed URI syntax in Windows Nov 22, 2024
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

If this is due to the OS-dependent bug, do you happen to know why this failure starts recently, @xupefei ?

Screenshot 2024-11-22 at 12 37 36

Also, cc @HyukjinKwon

@HyukjinKwon
Copy link
Member

I believe the cause was #48120. This is a followup for it.

@HyukjinKwon
Copy link
Member

Let me merge this one in any event, and see if the CI is fixed

@HyukjinKwon
Copy link
Member

Merged to master.

@dongjoon-hyun
Copy link
Member

Got it. Thank you, @xupefei and @HyukjinKwon .

@xupefei xupefei deleted the repl-class-uri-windows branch November 25, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants