Skip to content

Commit 2f1a337

Browse files
marmbrusrxin
authored andcommitted
[SQL] Make Hive Metastore conversion functions publicly visible.
I need this to be public for the implementation of SharkServer2. However, I think this functionality is generally useful and should be pretty stable. Author: Michael Armbrust <[email protected]> Closes apache#750 from marmbrus/metastoreTypes and squashes the following commits: f51b62e [Michael Armbrust] Make Hive Metastore conversion functions publicly visible.
1 parent 3e13b8c commit 2f1a337

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import org.apache.hadoop.hive.ql.plan.TableDesc
2626
import org.apache.hadoop.hive.ql.session.SessionState
2727
import org.apache.hadoop.hive.serde2.Deserializer
2828

29+
import org.apache.spark.annotation.DeveloperApi
2930
import org.apache.spark.sql.Logging
3031
import org.apache.spark.sql.catalyst.analysis.{EliminateAnalysisOperators, Catalog}
3132
import org.apache.spark.sql.catalyst.expressions._
@@ -172,7 +173,12 @@ private[hive] class HiveMetastoreCatalog(hive: HiveContext) extends Catalog with
172173
override def unregisterAllTables() = {}
173174
}
174175

175-
private[hive] object HiveMetastoreTypes extends RegexParsers {
176+
/**
177+
* :: DeveloperApi ::
178+
* Provides conversions between Spark SQL data types and Hive Metastore types.
179+
*/
180+
@DeveloperApi
181+
object HiveMetastoreTypes extends RegexParsers {
176182
protected lazy val primitiveType: Parser[DataType] =
177183
"string" ^^^ StringType |
178184
"float" ^^^ FloatType |

0 commit comments

Comments
 (0)