-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-52010] Do not generate API docs for internal classes #50797
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
Conversation
| package org.apache.spark.util | ||
|
|
||
| trait SparkStringUtils { | ||
| private[spark] trait SparkStringUtils { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added in #49062
| import scala.jdk.CollectionConverters._ | ||
|
|
||
| trait SparkTestUtils { | ||
| private[spark] trait SparkTestUtils { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added in #43354
| import org.apache.spark.sql.errors.QueryCompilationErrors | ||
| import org.apache.spark.sql.types._ | ||
|
|
||
| private[sql] case class AvroDataToCatalyst( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4.0 added two new internal classes in this package: AvroExpressionEvalUtils, AvroCompressionCodec. Given that this package contains only internal classes and deprecated APIs since 3.0, I marked the entire org.apache.spark.sql.avro package as private, so that we no longer need private[sql] in these existing classes.
| "org.apache.spark.sql.scripting" | ||
| "org.apache.spark.kafka010", | ||
| "org.apache.spark.network", | ||
| "org.apache.spark.sql.avro", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /** | ||
| * Class to conveniently update Kafka config params, while logging the changes | ||
| */ | ||
| private[spark] case class KafkaConfigUpdater(module: String, kafkaParams: Map[String, Object]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4.0 added one new internal class in this package: KafkaTokenProviderExceptions. Given that this package contains only internal classes, I marked the entire org.apache.spark.kafka010 package as private, so that we no longer need private[spark] in these existing classes.
| "org.apache.spark.deploy", | ||
| "org.apache.spark.util.collection", | ||
| "org.apache.spark.sql.scripting" | ||
| "org.apache.spark.kafka010", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "org.apache.spark.network", | ||
| "org.apache.spark.sql.avro", | ||
| "org.apache.spark.sql.scripting", | ||
| "org.apache.spark.types.variant", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new variant project adds this new package, but it only contain internal classes.
| "org.apache.spark.sql.avro", | ||
| "org.apache.spark.sql.scripting", | ||
| "org.apache.spark.types.variant", | ||
| "org.apache.spark.ui.flamegraph", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added by #42988 , should be intrenal
| import org.apache.spark.sql.exceptions.SqlScriptingException.errorMessageWithLineNumber | ||
|
|
||
| class SqlScriptingException ( | ||
| private[sql] class SqlScriptingException ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added by the new scripting feature.
| * Make the `classifyException` method throw out the original exception | ||
| */ | ||
| trait NoLegacyJDBCError extends JdbcDialect { | ||
| private[sql] trait NoLegacyJDBCError extends JdbcDialect { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added by #46937
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, it looks good to me. Thank you, @cloud-fan .
### What changes were proposed in this pull request? While reviewing the API doc of 4.0 RC4, I found that there are some newly added internal classes appear in the API doc. This PR fixes them. ### Why are the changes needed? API doc should not include internal classes ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A ### Was this patch authored or co-authored using generative AI tooling? no Closes #50797 from cloud-fan/api. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Kent Yao <[email protected]> (cherry picked from commit 9f5ae88) Signed-off-by: Kent Yao <[email protected]>
|
Merged to master/4.0, thank you @cloud-fan @dongjoon-hyun |
HyukjinKwon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM2
### What changes were proposed in this pull request? This is a followup of #50797 , to exclde these private packages from mima check. ### Why are the changes needed? mima shouldn't check private APIs ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A ### Was this patch authored or co-authored using generative AI tooling? no Closes #51038 from cloud-fan/mima. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
### What changes were proposed in this pull request? This is a followup of #50797 , to exclde these private packages from mima check. ### Why are the changes needed? mima shouldn't check private APIs ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A ### Was this patch authored or co-authored using generative AI tooling? no Closes #51038 from cloud-fan/mima. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Wenchen Fan <[email protected]> (cherry picked from commit f634311) Signed-off-by: Wenchen Fan <[email protected]>
### What changes were proposed in this pull request? While reviewing the API doc of 4.0 RC4, I found that there are some newly added internal classes appear in the API doc. This PR fixes them. ### Why are the changes needed? API doc should not include internal classes ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A ### Was this patch authored or co-authored using generative AI tooling? no Closes apache#50797 from cloud-fan/api. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Kent Yao <[email protected]>
### What changes were proposed in this pull request? This is a followup of apache#50797 , to exclde these private packages from mima check. ### Why are the changes needed? mima shouldn't check private APIs ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A ### Was this patch authored or co-authored using generative AI tooling? no Closes apache#51038 from cloud-fan/mima. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
### What changes were proposed in this pull request? While reviewing the API doc of 4.0 RC4, I found that there are some newly added internal classes appear in the API doc. This PR fixes them. ### Why are the changes needed? API doc should not include internal classes ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A ### Was this patch authored or co-authored using generative AI tooling? no Closes apache#50797 from cloud-fan/api. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Kent Yao <[email protected]> (cherry picked from commit 3ebc0fd) Signed-off-by: Kent Yao <[email protected]>
### What changes were proposed in this pull request? This is a followup of apache#50797 , to exclde these private packages from mima check. ### Why are the changes needed? mima shouldn't check private APIs ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A ### Was this patch authored or co-authored using generative AI tooling? no Closes apache#51038 from cloud-fan/mima. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Wenchen Fan <[email protected]> (cherry picked from commit 2bed378) Signed-off-by: Wenchen Fan <[email protected]>
What changes were proposed in this pull request?
While reviewing the API doc of 4.0 RC4, I found that there are some newly added internal classes appear in the API doc. This PR fixes them.
Why are the changes needed?
API doc should not include internal classes
Does this PR introduce any user-facing change?
no
How was this patch tested?
N/A
Was this patch authored or co-authored using generative AI tooling?
no