HyukjinKwon commented on a change in pull request #33406:
URL: https://github.com/apache/spark/pull/33406#discussion_r672030912
##########
File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/TableReader.scala
##########
@@ -322,7 +332,24 @@ class HadoopTableReader(
val initializeJobConfFunc =
HadoopTableReader.initializeLocalJobConfFunc(path, tableDesc) _
val inputFormatClass = tableDesc.getInputFileFormatClass
.asInstanceOf[Class[oldInputClass[Writable, Writable]]]
+ createOldHadoopRDD(inputFormatClass, initializeJobConfFunc)
+ }
+ /**
+ * Creates a HadoopRDD based on the broadcasted HiveConf and other job
properties that will be
+ * applied locally on each executor.
+ */
+ private def createOldHadoopRDD(partitionDesc: PartitionDesc, path: String):
RDD[Writable] = {
+ val initializeJobConfFunc =
+ HadoopTableReader.initializeLocalJobConfFunc(path,
partitionDesc.getTableDesc) _
Review comment:
Can we call `createOldHadoopRDD(tableDesc: TableDesc, path: String) `
here?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]