You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2022/06/03 12:53:49 UTC
[spark] branch branch-3.2 updated: [SPARK-39367][DOCS][SQL][3.2] Make SQL error objects private
This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 4a529a06414 [SPARK-39367][DOCS][SQL][3.2] Make SQL error objects private
4a529a06414 is described below
commit 4a529a06414c0997aadde9169d1e791ed7675d3c
Author: Gengliang Wang <ge...@apache.org>
AuthorDate: Fri Jun 3 21:53:39 2022 +0900
[SPARK-39367][DOCS][SQL][3.2] Make SQL error objects private
### What changes were proposed in this pull request?
Partially backport https://github.com/apache/spark/pull/36754 to branch-3.2, make the following objects as private so that they won't show up in API doc:
* QueryCompilationErrors
* QueryExecutionErrors
* QueryParsingErrors
### Why are the changes needed?
Fix bug in doc
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
GA tests
Closes #36761 from gengliangwang/fix3.2Doc.
Authored-by: Gengliang Wang <ge...@apache.org>
Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
.../main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala | 2 +-
.../main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala | 2 +-
.../src/main/scala/org/apache/spark/sql/errors/QueryParsingErrors.scala | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala
index 7c2780abf7f..e3102aa1e02 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala
@@ -46,7 +46,7 @@ import org.apache.spark.sql.types._
* As commands are executed eagerly, this also includes errors thrown during the execution of
* commands, which users can see immediately.
*/
-object QueryCompilationErrors {
+private[sql] object QueryCompilationErrors {
def groupingIDMismatchError(groupingID: GroupingID, groupByExprs: Seq[Expression]): Throwable = {
new AnalysisException(
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala
index 11dc57cb781..c5ac476aa31 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala
@@ -64,7 +64,7 @@ import org.apache.spark.util.CircularBuffer
* This does not include exceptions thrown during the eager execution of commands, which are
* grouped into [[QueryCompilationErrors]].
*/
-object QueryExecutionErrors {
+private[sql] object QueryExecutionErrors {
def columnChangeUnsupportedError(): Throwable = {
new UnsupportedOperationException("Please add an implementation for a column change here")
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryParsingErrors.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryParsingErrors.scala
index b6a8163d503..56855e1e533 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryParsingErrors.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryParsingErrors.scala
@@ -27,7 +27,7 @@ import org.apache.spark.sql.catalyst.trees.Origin
* Object for grouping all error messages of the query parsing.
* Currently it includes all ParseException.
*/
-object QueryParsingErrors {
+private[sql] object QueryParsingErrors {
def invalidInsertIntoError(ctx: InsertIntoContext): Throwable = {
new ParseException("Invalid InsertIntoContext", ctx)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org