Skip to content

Commit

Permalink
[SPARK-34235][SS] Make spark.sql.hive as a private package
Browse files Browse the repository at this point in the history
Follow the comment apache#31271 (comment):

- Remove the API tag `Unstable` for `HiveSessionStateBuilder`
- Add document for spark.sql.hive package to emphasize it's a private package

Follow the rule for a private package.

No.

Doc change only.

Closes apache#31321 from xuanyuanking/SPARK-34185-follow.

Authored-by: Yuanjian Li <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit 0a1a029)
Signed-off-by: HyukjinKwon <[email protected]>
  • Loading branch information
xuanyuanking authored and HyukjinKwon committed Jan 26, 2021
1 parent 545ab05 commit 8cf02b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project/SparkBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ object Unidoc {
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/catalyst")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/execution")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/internal")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/hive/test")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/hive")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/catalog/v2/utils")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/hive")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/v2/avro")))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package org.apache.spark.sql.hive

import org.apache.spark.annotation.Unstable
import org.apache.spark.sql._
import org.apache.spark.sql.catalyst.analysis.{Analyzer, ResolveSessionCatalog}
import org.apache.spark.sql.catalyst.catalog.ExternalCatalogWithListener
Expand All @@ -36,7 +35,6 @@ import org.apache.spark.sql.internal.{BaseSessionStateBuilder, SessionResourceLo
/**
* Builder that produces a Hive-aware `SessionState`.
*/
@Unstable
class HiveSessionStateBuilder(
session: SparkSession,
parentState: Option[SessionState],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ package org.apache.spark.sql
* - Using HiveQL to express queries.
* - Reading metadata from the Hive Metastore using HiveSerDes.
* - Hive UDFs, UDAs, UDTs
*
* Note that this is a private package. All classes in this package are considered an internal API
* to Spark and are subject to change between minor releases.
*/
package object hive

0 comments on commit 8cf02b3

Please sign in to comment.