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-51182][SQL] DataFrameWriter should throw dataPathNotSpecifiedError when path is not specified #49928

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vrozov
Copy link
Member

@vrozov vrozov commented Feb 13, 2025

What changes were proposed in this pull request?

Change error message from Expected exactly one path to be specified, but got: . to 'path' is not specified. when path is not specified in the call to DataFrame.write().save(path) explicitly or using option(path, ...), parquet(path) and etc.

Why are the changes needed?

The error message is more accurate.

Does this PR introduce any user-facing change?

Yes, user would get corrected error message when they do not specify path.

How was this patch tested?

Updated error message in the R test suite.

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

No

@vrozov
Copy link
Member Author

vrozov commented Feb 13, 2025

@HeartSaVioR Please review.

@HeartSaVioR
Copy link
Contributor

I'll defer the review to SQL area committers, cc. @cloud-fan

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.

2 participants