danny0405 commented on code in PR #13672:
URL: https://github.com/apache/hudi/pull/13672#discussion_r2249472459


##########
hudi-client/hudi-spark-client/src/main/scala/org/apache/spark/sql/HoodieInternalRowUtils.scala:
##########
@@ -416,7 +405,7 @@ object HoodieInternalRowUtils {
   }
 
   private def lookupRenamedField(newFieldQualifiedName: String, 
renamedColumnsMap: JMap[String, String]) = {
-    val prevFieldQualifiedName = 
renamedColumnsMap.getOrDefault(newFieldQualifiedName, "")
+    val prevFieldQualifiedName = 
renamedColumnsMap.getOrDefault(newFieldQualifiedName, newFieldQualifiedName)

Review Comment:
   can return fast if the name is not renamed.



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