Skip to content

Commit

Permalink
change FileInputFormat.setInputPaths to jobConf.set and add test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
watermen committed Feb 11, 2015
1 parent e380d2d commit b788a72
Show file tree
Hide file tree
Showing 18 changed files with 2,512 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with BeforeAndAfter {
"mapreduce8",
"merge1",
"merge2",
"merge4",
"mergejoins",
"multiMapJoin1",
"multiMapJoin2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import org.apache.spark.broadcast.Broadcast
import org.apache.spark.rdd.{EmptyRDD, HadoopRDD, RDD, UnionRDD}
import org.apache.spark.sql.catalyst.expressions._
import org.apache.spark.sql.types.DateUtils
import org.apache.hadoop.util.StringUtils

/**
* A trait for subclasses that handle table scans.
Expand Down Expand Up @@ -248,7 +249,7 @@ private[hive] object HadoopTableReader extends HiveInspectors {
* instantiate a HadoopRDD.
*/
def initializeLocalJobConfFunc(path: String, tableDesc: TableDesc)(jobConf: JobConf) {
FileInputFormat.setInputPaths(jobConf, path)
jobConf.set("mapred.input.dir", StringUtils.escapeString(path.toString()))
if (tableDesc != null) {
PlanUtils.configureInputJobPropertiesForStorageHandler(tableDesc)
Utilities.copyTableJobPropertiesToConf(tableDesc, jobConf)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Empty file.
Loading

0 comments on commit b788a72

Please sign in to comment.