DeyinZhong commented on a change in pull request #29178:
URL: https://github.com/apache/spark/pull/29178#discussion_r458500082
##########
File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/TableReader.scala
##########
@@ -299,7 +299,9 @@ class HadoopTableReader(
*/
private def createHadoopRDD(localTableDesc: TableDesc, inputPathStr:
String): RDD[Writable] = {
val inputFormatClazz = localTableDesc.getInputFileFormatClass
- if (classOf[newInputClass[_, _]].isAssignableFrom(inputFormatClazz)) {
+ if (!inputFormatClazz.getName.
+
equalsIgnoreCase("org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat")
+ && classOf[newInputClass[_, _]].isAssignableFrom(inputFormatClazz)) {
Review comment:
I try Spark2.4.3 can work well.
spark3.0.0 will createNewHadoopRDD, and call 'val allRowSplits =
inputFormat.getSplits(new JobContextImpl(_conf, jobId)).asScala' in method
getPartitions, this will call TableInputFormatBase.getSplits(JobContext
context), but the variable table is null, so throw the execption;
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]