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-48804][SQL] Add classIsLoadable & OutputCommitter.isAssignableFrom check for output committer class configrations #47209

Closed
wants to merge 6 commits into from

Conversation

yaooqinn
Copy link
Member

@yaooqinn yaooqinn commented Jul 4, 2024

What changes were proposed in this pull request?

This pull request proposed adding a checker for class values provided by users in spark.sql.sources.outputCommitterClass and spark.sql.parquet.output.committer.class to make sure the given class is visible from the classpath and a subclass of org.apache.hadoop.mapreduce.OutputCommitter

Why are the changes needed?

Ensure that an invalid configuration results in immediate application or query failure rather than failing late during setupJob.

Does this PR introduce any user-facing change?

no

How was this patch tested?

new tests

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

no

…From check for output committer class configrations
…From check for output committer class configrations
…From check for output committer class configrations
@github-actions github-actions bot added the SQL label Jul 4, 2024
…From check for output committer class configrations
…From check for output committer class configrations
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.

+1, LGTM. Thank you!

@yaooqinn yaooqinn closed this in aa3c369 Jul 9, 2024
@yaooqinn
Copy link
Member Author

yaooqinn commented Jul 9, 2024

Thank you @dongjoon-hyun
Merged to master

@yaooqinn yaooqinn deleted the SPARK-48804 branch July 9, 2024 06:12
ericm-db pushed a commit to ericm-db/spark that referenced this pull request Jul 10, 2024
…From check for output committer class configrations

### What changes were proposed in this pull request?

This pull request proposed adding a checker for class values provided by users in `spark.sql.sources.outputCommitterClass` and `spark.sql.parquet.output.committer.class` to make sure the given class is visible from the classpath and a subclass of `org.apache.hadoop.mapreduce.OutputCommitter`

### Why are the changes needed?

Ensure that an invalid configuration results in immediate application or query failure rather than failing late during setupJob.
### Does this PR introduce _any_ user-facing change?

no
### How was this patch tested?

new tests

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

Closes apache#47209 from yaooqinn/SPARK-48804.

Authored-by: Kent Yao <yao@apache.org>
Signed-off-by: Kent Yao <yao@apache.org>
jingz-db pushed a commit to jingz-db/spark that referenced this pull request Jul 22, 2024
…From check for output committer class configrations

### What changes were proposed in this pull request?

This pull request proposed adding a checker for class values provided by users in `spark.sql.sources.outputCommitterClass` and `spark.sql.parquet.output.committer.class` to make sure the given class is visible from the classpath and a subclass of `org.apache.hadoop.mapreduce.OutputCommitter`

### Why are the changes needed?

Ensure that an invalid configuration results in immediate application or query failure rather than failing late during setupJob.
### Does this PR introduce _any_ user-facing change?

no
### How was this patch tested?

new tests

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

Closes apache#47209 from yaooqinn/SPARK-48804.

Authored-by: Kent Yao <yao@apache.org>
Signed-off-by: Kent Yao <yao@apache.org>
attilapiros pushed a commit to attilapiros/spark that referenced this pull request Oct 4, 2024
…From check for output committer class configrations

### What changes were proposed in this pull request?

This pull request proposed adding a checker for class values provided by users in `spark.sql.sources.outputCommitterClass` and `spark.sql.parquet.output.committer.class` to make sure the given class is visible from the classpath and a subclass of `org.apache.hadoop.mapreduce.OutputCommitter`

### Why are the changes needed?

Ensure that an invalid configuration results in immediate application or query failure rather than failing late during setupJob.
### Does this PR introduce _any_ user-facing change?

no
### How was this patch tested?

new tests

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

Closes apache#47209 from yaooqinn/SPARK-48804.

Authored-by: Kent Yao <yao@apache.org>
Signed-off-by: Kent Yao <yao@apache.org>
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