package hive
Support for running Spark SQL queries using functionality from Apache Hive (does not require an existing Hive installation). Supported Hive features include:
- Using HiveQL to express queries.
- Reading metadata from the Hive Metastore using HiveSerDes.
- Hive UDFs, UDAs, UDTs
Users that would like access to this functionality should create a HiveContext instead of a SQLContext.
- Alphabetic
- By Inheritance
- hive
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- class DetermineTableStats extends Rule[LogicalPlan]
- class HiveSessionResourceLoader extends SessionResourceLoader
-
class
HiveSessionStateBuilder extends BaseSessionStateBuilder
Builder that produces a Hive-aware
SessionState
.Builder that produces a Hive-aware
SessionState
.- Annotations
- @Experimental() @Unstable()
-
case class
RelationConversions(conf: SQLConf, sessionCatalog: HiveSessionCatalog) extends Rule[LogicalPlan] with Product with Serializable
Relation conversion from metastore relations to data source relations for better performance
Relation conversion from metastore relations to data source relations for better performance
- When writing to non-partitioned Hive-serde Parquet/Orc tables - When scanning Hive-serde Parquet/ORC tables
This rule must be run before all other DDL post-hoc resolution rules, i.e.
PreprocessTableCreation
,PreprocessTableInsertion
,DataSourceAnalysis
andHiveAnalysis
. -
class
ResolveHiveSerdeTable extends Rule[LogicalPlan]
Determine the database, serde/format and schema of the Hive serde table, according to the storage properties.
-
class
HiveContext extends SQLContext with Logging
An instance of the Spark SQL execution engine that integrates with data stored in Hive.
An instance of the Spark SQL execution engine that integrates with data stored in Hive. Configuration for Hive is read from hive-site.xml on the classpath.
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) Use SparkSession.builder.enableHiveSupport instead
Value Members
-
object
HiveAnalysis extends Rule[LogicalPlan]
Replaces generic operations with specific variants that are designed to work with Hive.
Replaces generic operations with specific variants that are designed to work with Hive.
Note that, this rule must be run after
PreprocessTableCreation
andPreprocessTableInsertion
. - object HiveExternalCatalog