We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c7d6f9 commit d170e24Copy full SHA for d170e24
sql/hive/src/main/scala/org/apache/spark/sql/hive/TableReader.scala
@@ -299,7 +299,9 @@ class HadoopTableReader(
299
*/
300
private def createHadoopRDD(localTableDesc: TableDesc, inputPathStr: String): RDD[Writable] = {
301
val inputFormatClazz = localTableDesc.getInputFileFormatClass
302
- if (classOf[newInputClass[_, _]].isAssignableFrom(inputFormatClazz)) {
+ if (!inputFormatClazz.getName.
303
+ equalsIgnoreCase("org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat")
304
+ && classOf[newInputClass[_, _]].isAssignableFrom(inputFormatClazz)) {
305
createNewHadoopRDD(localTableDesc, inputPathStr)
306
} else {
307
createOldHadoopRDD(localTableDesc, inputPathStr)
0 commit comments