yihua commented on code in PR #10778:
URL: https://github.com/apache/hudi/pull/10778#discussion_r1543360731


##########
hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/HoodieSparkUtils.scala:
##########
@@ -131,6 +132,16 @@ object HoodieSparkUtils extends SparkAdapterSupport with 
SparkVersionsSupport wi
   def injectSQLConf[T: ClassTag](rdd: RDD[T], conf: SQLConf): RDD[T] =
     new SQLConfInjectingRDD(rdd, conf)
 
+  def maybeWrapDataFrameWithException(df: DataFrame, exceptionClass: String, 
msg: String, shouldWrap: Boolean): DataFrame = {
+    if (shouldWrap) {
+      HoodieUnsafeUtils.createDataFrameFromRDD(df.sparkSession, 
injectSQLConf(df.queryExecution.toRdd.mapPartitions {

Review Comment:
   My doubt is if wrapping the df with exception needs the SQL conf injection.  
So you're saying this needs SQL conf injection so the configs can still be 
propagated to the executors.



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

Reply via email to