c21 commented on a change in pull request #33674:
URL: https://github.com/apache/spark/pull/33674#discussion_r695404049



##########
File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/TableReader.scala
##########
@@ -378,6 +387,9 @@ class HadoopTableReader(
   private def createNewHadoopRDD(partDesc: PartitionDesc, path: String): 
RDD[Writable] = {
     val newJobConf = new JobConf(hadoopConf)
     HadoopTableReader.initializeLocalJobConfFunc(path, 
partDesc.getTableDesc)(newJobConf)
+    // SPARK-36328: Reuse the FileSystem delegation token while querying 
partitioned hive table.
+    SparkHadoopUtil.get.addCurrentCredentials(newJobConf,
+      _broadcastedCredentials.value.value)

Review comment:
       wondering why we need this now?




-- 
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]

Reply via email to