hvanhovell commented on code in PR #41457: URL: https://github.com/apache/spark/pull/41457#discussion_r1218298494
########## sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala: ########## @@ -3898,11 +3898,26 @@ class Dataset[T] private[sql]( */ lazy val rdd: RDD[T] = { val objectType = exprEnc.deserializer.dataType + populateLocalPropertiesInSparkContext(rddQueryExecution.sparkSession) rddQueryExecution.toRdd.mapPartitions { rows => rows.map(_.get(0, objectType).asInstanceOf[T]) } } + /** + * Popluate Configs in SparkContext's localProperties. + * @param sparkSession + */ + def populateLocalPropertiesInSparkContext(sparkSession: SparkSession): Unit = { Review Comment: For the record this already happens in SQLExecution. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org