alexeykudinkin commented on code in PR #6361:
URL: https://github.com/apache/hudi/pull/6361#discussion_r971019994


##########
hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/HoodieSparkUtils.scala:
##########
@@ -65,35 +68,33 @@ object HoodieSparkUtils extends SparkAdapterSupport with 
SparkVersionsSupport {
   /**
    * @deprecated please use other overload [[createRdd]]
    */
+  @Deprecated
   def createRdd(df: DataFrame, structName: String, recordNamespace: String, 
reconcileToLatestSchema: Boolean,
-                latestTableSchema: org.apache.hudi.common.util.Option[Schema] 
= org.apache.hudi.common.util.Option.empty()): RDD[GenericRecord] = {
-    var latestTableSchemaConverted : Option[Schema] = None
+                targetSchema: org.apache.hudi.common.util.Option[Schema] = 
org.apache.hudi.common.util.Option.empty()): RDD[GenericRecord] = {
+    createRdd(df, structName, recordNamespace, toScalaOption(targetSchema))
+  }
 
-    if (latestTableSchema.isPresent && reconcileToLatestSchema) {

Review Comment:
   This conditional got removed as useless



-- 
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: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to