Skip to content

Commit 63d170a

Browse files
committed
fix compile problem
1 parent 7470901 commit 63d170a

File tree

1 file changed

+7
-6
lines changed
  • sql/hive/v0.12.0/src/main/scala/org/apache/spark/sql/hive

1 file changed

+7
-6
lines changed

sql/hive/v0.12.0/src/main/scala/org/apache/spark/sql/hive/Shim12.scala

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ private[hive] object HiveShim {
6161
val version = "0.12.0"
6262

6363
def getTableDesc(
64-
serdeClass: Class[_ <: Deserializer],
65-
inputFormatClass: Class[_ <: InputFormat[_, _]],
66-
outputFormatClass: Class[_],
67-
properties: Properties) = {
64+
serdeClass: Class[_ <: Deserializer],
65+
inputFormatClass: Class[_ <: InputFormat[_, _]],
66+
outputFormatClass: Class[_],
67+
properties: Properties) = {
6868
new TableDesc(serdeClass, inputFormatClass, outputFormatClass, properties)
6969
}
7070

@@ -187,7 +187,7 @@ private[hive] object HiveShim {
187187

188188
def getStatsSetupConstRawDataSize = StatsSetupConst.RAW_DATA_SIZE
189189

190-
def createDefaultDBIfNeeded(context: HiveContext) = { }
190+
def createDefaultDBIfNeeded(context: HiveContext) = {}
191191

192192
def getCommandProcessor(cmd: Array[String], conf: HiveConf) = {
193193
CommandProcessorFactory.get(cmd(0), conf)
@@ -208,7 +208,7 @@ private[hive] object HiveShim {
208208

209209
def getDataLocationPath(p: Partition) = p.getPartitionPath
210210

211-
def getAllPartitionsOf(client: Hive, tbl: Table) = client.getAllPartitionsForPruner(tbl)
211+
def getAllPartitionsOf(client: Hive, tbl: Table) = client.getAllPartitionsForPruner(tbl)
212212

213213
def compatibilityBlackList = Seq(
214214
"decimal_.*",
@@ -250,6 +250,7 @@ private[hive] object HiveShim {
250250
def prepareWritable(w: Writable): Writable = {
251251
w
252252
}
253+
}
253254

254255
class ShimFileSinkDesc(var dir: String, var tableInfo: TableDesc, var compressed: Boolean)
255256
extends FileSinkDesc(dir, tableInfo, compressed) {

0 commit comments

Comments
 (0)