Github user scwf commented on a diff in the pull request: https://github.com/apache/spark/pull/1385#discussion_r14866988 --- Diff: sql/hive/src/main/scala/org/apache/spark/sql/hive/TableReader.scala --- @@ -206,17 +202,10 @@ class HadoopTableReader(@transient _tableDesc: TableDesc, @transient sc: HiveCon tableDesc: TableDesc, path: String, inputFormatClass: Class[InputFormat[Writable, Writable]]): RDD[Writable] = { - - val initializeJobConfFunc = HadoopTableReader.initializeLocalJobConfFunc(path, tableDesc) _ - - val rdd = new HadoopRDD( - sc.sparkContext, - _broadcastedHiveConf.asInstanceOf[Broadcast[SerializableWritable[Configuration]]], - Some(initializeJobConfFunc), - inputFormatClass, - classOf[Writable], - classOf[Writable], - _minSplitsPerRDD) + val jobConf = new JobConf(_broadcastedHiveConf.value.value.asInstanceOf[Configuration]) --- End diff -- My implements is broadcasting the conf for each HadoopRDD, do you mean we just broadcast once for all Hadoop RDD ? right?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---