Commit d3d8e268 authored by Jonathan Mace's avatar Jonathan Mace
Browse files

Testing out table caching

parent 06ebd237
......@@ -189,6 +189,7 @@ class Tables(sqlContext: HiveContext, scaleFactor: Int) extends Serializable {
println(s"Creating temporary table $name using data stored in $location.")
log.info(s"Creating temporary table $name using data stored in $location.")
sqlContext.read.format(format).load(location).registerTempTable(name)
sqlContext.cacheTable(name)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment