@@ -107,9 +107,9 @@ class HadoopTableReader(
107107
108108 val tablePath = hiveTable.getPath
109109 val fs = tablePath.getFileSystem(sc.hiveconf)
110- val inputPaths : Seq [Path ] =
110+ val inputPaths : Seq [String ] =
111111 sc.hadoopFileSelector.flatMap(
112- _.selectFiles(hiveTable.getTableName, fs, tablePath).
112+ _.selectFiles(hiveTable.getTableName, fs, tablePath)
113113 ).map(_.map(_.toString)).getOrElse(applyFilterIfNeeded(tablePath, filterOpt))
114114
115115 // logDebug("Table input: %s".format(tablePath))
@@ -263,7 +263,7 @@ class HadoopTableReader(
263263 case Some (filter) =>
264264 val fs = path.getFileSystem(sc.hiveconf)
265265 fs.listStatus(path, filter).map(_.getPath.toString)
266- case None => Seq (path)
266+ case None => Seq (path.toString )
267267 }
268268 }
269269
@@ -404,7 +404,9 @@ abstract class HadoopFileSelector {
404404 /**
405405 * Select files constituting a table from the given base path according to the client's custom
406406 * algorithm. This is only applied to non-partitioned tables.
407- * @param tableName table name to select files for
407+ * @param tableName table name to select files for. This is the exact table name specified
408+ * in the query, not a "preprocessed" file name returned by the user-defined
409+ * function registered via [[HiveContext.setTableNamePreprocessor ]].
408410 * @param fs the filesystem containing the table
409411 * @param basePath base path of the table in the filesystem
410412 * @return a set of files, or [[None ]] if the custom file selection algorithm does not apply
0 commit comments