aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorHerman van Hovell <hvanhovell@databricks.com>2016-08-16 01:12:27 -0700
committerReynold Xin <rxin@databricks.com>2016-08-16 01:12:27 -0700
commit8fdc6ce400f9130399fbdd004df48b3ba95bcd6a (patch)
treed41859a6fee4e30ee84d2b1f24ba82ebf853d8ad /sql
parent7b65030e7a0af3a0bd09370fb069d659b36ff7f0 (diff)
downloadspark-8fdc6ce400f9130399fbdd004df48b3ba95bcd6a.tar.gz
spark-8fdc6ce400f9130399fbdd004df48b3ba95bcd6a.tar.bz2
spark-8fdc6ce400f9130399fbdd004df48b3ba95bcd6a.zip
[SPARK-16964][SQL] Remove private[hive] from sql.hive.execution package
## What changes were proposed in this pull request? This PR is a small follow-up to https://github.com/apache/spark/pull/14554. This also widens the visibility of a few (similar) Hive classes. ## How was this patch tested? No test. Only a visibility change. Author: Herman van Hovell <hvanhovell@databricks.com> Closes #14654 from hvanhovell/SPARK-16964-hive.
Diffstat (limited to 'sql')
-rw-r--r--sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/CreateHiveTableAsSelectCommand.scala1
-rw-r--r--sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/ScriptTransformation.scala3
-rw-r--r--sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFileFormat.scala3
3 files changed, 1 insertions, 6 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/CreateHiveTableAsSelectCommand.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/CreateHiveTableAsSelectCommand.scala
index 678bf8da73..6e6b1c2a2b 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/CreateHiveTableAsSelectCommand.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/CreateHiveTableAsSelectCommand.scala
@@ -34,7 +34,6 @@ import org.apache.spark.sql.hive.MetastoreRelation
* @param ignoreIfExists allow continue working if it's already exists, otherwise
* raise exception
*/
-private[hive]
case class CreateHiveTableAsSelectCommand(
tableDesc: CatalogTable,
query: LogicalPlan,
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/ScriptTransformation.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/ScriptTransformation.scala
index d063dd6b7f..c553c03a9b 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/ScriptTransformation.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/ScriptTransformation.scala
@@ -51,7 +51,6 @@ import org.apache.spark.util.{CircularBuffer, RedirectThread, SerializableConfig
* @param script the command that should be executed.
* @param output the attributes that are produced by the script.
*/
-private[hive]
case class ScriptTransformation(
input: Seq[Expression],
script: String,
@@ -338,7 +337,6 @@ private class ScriptTransformationWriterThread(
}
}
-private[hive]
object HiveScriptIOSchema {
def apply(input: ScriptInputOutputSchema): HiveScriptIOSchema = {
HiveScriptIOSchema(
@@ -357,7 +355,6 @@ object HiveScriptIOSchema {
/**
* The wrapper class of Hive input and output schema properties
*/
-private[hive]
case class HiveScriptIOSchema (
inputRowFormat: Seq[(String, String)],
outputRowFormat: Seq[(String, String)],
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFileFormat.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFileFormat.scala
index 1d3c4663c3..c74d948a6f 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFileFormat.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFileFormat.scala
@@ -45,8 +45,7 @@ import org.apache.spark.util.SerializableConfiguration
* [[FileFormat]] for reading ORC files. If this is moved or renamed, please update
* [[DataSource]]'s backwardCompatibilityMap.
*/
-private[sql] class OrcFileFormat
- extends FileFormat with DataSourceRegister with Serializable {
+class OrcFileFormat extends FileFormat with DataSourceRegister with Serializable {
override def shortName(): String = "orc"