Deegue opened a new pull request #23559: [SPARK-26630][SQL] Fix 
ClassCastException in TableReader while creating HadoopRDD
URL: https://github.com/apache/spark/pull/23559
 
 
   ## What changes were proposed in this pull request?
   
   When we read a hive table and create RDDs in `TableReader`, it'll throw 
exception `java.lang.ClassCastException: 
org.apache.hadoop.mapreduce.lib.input.TextInputFormat cannot be cast to 
org.apache.hadoop.mapred.InputFormat` if the input format class of the table is 
from mapreduce package.
   
   Now we use NewHadoopRDD to deal with the new input format and keep HadoopRDD 
to the old one.
   
   This PR is from #23506 .
   
   ## How was this patch tested?
   
   Added a new test.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to