yihua commented on code in PR #10778:
URL: https://github.com/apache/hudi/pull/10778#discussion_r1543367539
##########
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:
Let's keep an eye on the DAG and Spark execution when this is rolled out. I
think this is OK for 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]