Package pyspark :: Module sql :: Class HiveContext
[frames] | no frames]

Class HiveContext

source code

SQLContext --+
             |
            HiveContext

A variant of Spark SQL that integrates with data stored in Hive.

Configuration for Hive is read from hive-site.xml on the classpath. It supports running both SQL and HiveQL commands.

Instance Methods
 
hiveql(self, hqlQuery)
Runs a query expressed in HiveQL, returning the result as a SchemaRDD.
source code
 
hql(self, hqlQuery)
Runs a query expressed in HiveQL, returning the result as a SchemaRDD.
source code

Inherited from SQLContext: __init__, cacheTable, inferSchema, jsonFile, jsonRDD, parquetFile, registerRDDAsTable, sql, table, uncacheTable