-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-36457][DOCS] Review and fix issues in Scala/Java API docs #33824
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
| * Arithmetic exception thrown from Spark with an error class. | ||
| */ | ||
| class SparkArithmeticException(errorClass: String, messageParameters: Array[String]) | ||
| private[spark] class SparkArithmeticException(errorClass: String, messageParameters: Array[String]) |
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.
cc @karenfeng
| * Object for grouping error messages from (most) exceptions thrown during query execution. | ||
| */ | ||
| object SparkCoreErrors { | ||
| private[spark] object SparkCoreErrors { |
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.
cc @karenfeng
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.
shall we mark org.apache.spark.errors as a private package as well?
| * change the checksum calculator at runtime. | ||
| */ | ||
| class MutableCheckedOutputStream(out: OutputStream) extends OutputStream { | ||
| private[spark] class MutableCheckedOutputStream(out: OutputStream) extends OutputStream { |
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.
cc @Ngone51
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.
LGTM, thanks!
| import org.apache.spark.internal.config._ | ||
|
|
||
| case class IvyProperties( | ||
| private[spark] case class IvyProperties( |
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.
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.
LGTM
| * | ||
| * @since 3.2.0 | ||
| */ | ||
| @Evolving |
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.
| * | ||
| * @since 3.2.0 | ||
| */ | ||
| @Evolving |
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.
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.
Also please take a look at the following DSV2 changes, thanks!
| * grouped into [[QueryCompilationErrors]]. | ||
| */ | ||
| object QueryExecutionErrors { | ||
| private[spark] object QueryExecutionErrors { |
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.
cc @karenfeng
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.
shall we mark the entire org.apache.spark.sql.errors as private?
See https://github.com/apache/spark/blob/master/project/SparkBuild.scala#L944-L973
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.
SGTM. @karenfeng will there be any new public API under org.apache.spark.sql.errors?
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.
I think that the only useful API to expose related to this may be SparkThrowable, which contains errorClass and sqlState. But that is under org.apache.spark.
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.
LGTM
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.
ok, let me mark org.apache.spark.sql.errors as private
| * Currently it includes all ParseException. | ||
| */ | ||
| object QueryParsingErrors { | ||
| private[spark] object QueryParsingErrors { |
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.
cc @karenfeng
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.
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.
LGTM
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
Test build #142731 has finished for PR 33824 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
Test build #142752 has finished for PR 33824 at commit
|
|
Merging to master/3.2 |
Compare the 3.2.0 API doc with the latest release version 3.1.2. Fix the following issues: - Add missing `Since` annotation for new APIs - Remove the leaking class/object in API doc Improve API docs No Existing UT Closes apache#33824 from gengliangwang/auditDoc. Authored-by: Gengliang Wang <gengliang@apache.org> Signed-off-by: Gengliang Wang <gengliang@apache.org>
* the functions make_dt_interval and make_ym_interval should make it clear that some of the fields are optional * remove the `|` symbol from the doc of `bit_get` https://dist.apache.org/repos/dist/dev/spark/v3.2.0-rc1-docs/_site/api/sql/index.html#bit_get * Address one missing comment in apache#33824 (comment) Improve the documentation. No Build doc and preview:     Closes apache#33847 from gengliangwang/auditSQLDoc. Authored-by: Gengliang Wang <gengliang@apache.org> Signed-off-by: Gengliang Wang <gengliang@apache.org>
### What changes were proposed in this pull request? * the functions make_dt_interval and make_ym_interval should make it clear that some of the fields are optional * remove the `|` symbol from the doc of `bit_get` https://dist.apache.org/repos/dist/dev/spark/v3.2.0-rc1-docs/_site/api/sql/index.html#bit_get * Address one missing comment in #33824 (comment) ### Why are the changes needed? Improve the documentation. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Build doc and preview:     Closes #33857 from gengliangwang/SPARK-36597-3.2. Authored-by: Gengliang Wang <gengliang@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
Compare the 3.2.0 API doc with the latest release version 3.1.2. Fix the following issues:
Sinceannotation for new APIsWhy are the changes needed?
Improve API docs
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing UT