jonvex commented on code in PR #13711:
URL: https://github.com/apache/hudi/pull/13711#discussion_r2288535173


##########
hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/BaseSparkInternalRecordContext.java:
##########
@@ -67,6 +73,30 @@ public static Object 
getFieldValueFromInternalRow(InternalRow row, Schema record
     }
   }
 
+  public static Object getFieldValueFromInternalRowAsJava(InternalRow row, 
Schema recordSchema, String fieldName) {
+    Object value = getFieldValueFromInternalRow(row, recordSchema, fieldName);
+    return sparkTypeToJavaType(value);
+  }
+
+  public static Object sparkTypeToJavaType(Object value) {

Review Comment:
   
https://github.com/apache/spark/blob/5660dbadf90ed08faef6dc883fd98f55b098e96a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/InternalRow.scala#L178
 yeah



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