-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ import javax.tools.{JavaFileObject, SimpleJavaFileObject, ToolProvider} | |
|
||
import scala.jdk.CollectionConverters._ | ||
|
||
trait SparkTestUtils { | ||
private[spark] trait SparkTestUtils { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added in #43354 |
||
// Adapted from the JavaCompiler.java doc examples | ||
private val SOURCE = JavaFileObject.Kind.SOURCE | ||
|
||
|
@@ -103,4 +103,4 @@ trait SparkTestUtils { | |
|
||
} | ||
|
||
object SparkTestUtils extends SparkTestUtils | ||
private[spark] object SparkTestUtils extends SparkTestUtils |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ import org.apache.spark.sql.catalyst.util.{FailFastMode, ParseMode, PermissiveMo | |
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 commentThe reason will be displayed to describe this comment to others. Learn more. 4.0 added two new internal classes in this package: |
||
case class AvroDataToCatalyst( | ||
child: Expression, | ||
jsonFormatSchema: String, | ||
options: Map[String, String]) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ import org.apache.spark.internal.Logging | |
/** | ||
* 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 commentThe reason will be displayed to describe this comment to others. Learn more. 4.0 added one new internal class in this package: |
||
case class KafkaConfigUpdater(module: String, kafkaParams: Map[String, Object]) | ||
extends Logging { | ||
private val map = new ju.HashMap[String, Object](kafkaParams.asJava) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -334,10 +334,14 @@ object SparkBuild extends PomBuild { | |
"-groups", | ||
"-skip-packages", Seq( | ||
"org.apache.spark.api.python", | ||
"org.apache.spark.network", | ||
"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 commentThe reason will be displayed to describe this comment to others. Learn more. |
||
"org.apache.spark.network", | ||
"org.apache.spark.sql.avro", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
"org.apache.spark.sql.scripting", | ||
"org.apache.spark.types.variant", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.ui.flamegraph", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added by #42988 , should be intrenal |
||
"org.apache.spark.util.collection" | ||
).mkString(":"), | ||
"-doc-title", "Spark " + version.value.replaceAll("-SNAPSHOT", "") + " ScalaDoc" | ||
), | ||
|
@@ -1380,10 +1384,14 @@ object Unidoc { | |
f.getCanonicalPath.contains("org/apache/spark/unsafe") && | ||
!f.getCanonicalPath.contains("org/apache/spark/unsafe/types/CalendarInterval"))) | ||
.map(_.filterNot(_.getCanonicalPath.contains("python"))) | ||
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/kafka010"))) | ||
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/types/variant"))) | ||
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/ui/flamegraph"))) | ||
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/util/collection"))) | ||
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/util/io"))) | ||
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/util/kvstore"))) | ||
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/artifact"))) | ||
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/avro"))) | ||
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/catalyst"))) | ||
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/connect/"))) | ||
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/classic/"))) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ import org.apache.spark.{SparkThrowable, SparkThrowableHelper} | |
import org.apache.spark.sql.catalyst.trees.Origin | ||
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 commentThe reason will be displayed to describe this comment to others. Learn more. added by the new scripting feature. |
||
errorClass: String, | ||
cause: Throwable, | ||
val origin: Origin, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -871,7 +871,7 @@ abstract class JdbcDialect extends Serializable with Logging { | |
/** | ||
* 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 commentThe reason will be displayed to describe this comment to others. Learn more. added by #46937 |
||
|
||
override def classifyException( | ||
e: Throwable, | ||
|
Uh oh!
There was an error while loading. Please reload this page.
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