voonhous commented on code in PR #14340:
URL: https://github.com/apache/hudi/pull/14340#discussion_r2597607561


##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/DeleteContext.java:
##########
@@ -94,15 +95,19 @@ private static Option<Pair<String, String>> 
getCustomDeleteMarkerKeyValue(Proper
    * @param schema table schema to check
    * @return whether built-in delete field is included in the table schema
    */
-  private static boolean hasBuiltInDeleteField(Schema schema) {
-    return schema.getType() != Schema.Type.NULL && 
schema.getField(HOODIE_IS_DELETED_FIELD) != null;
+  private static boolean hasBuiltInDeleteField(HoodieSchema schema) {
+    return schema.getType() != HoodieSchemaType.NULL && 
schema.getField(HOODIE_IS_DELETED_FIELD).isPresent();
   }
 
   /**
    * Returns position of hoodie operation meta field in the schema
    */
-  private static int getHoodieOperationPos(Schema schema) {
-    return 
Option.ofNullable(schema.getField(HoodieRecord.OPERATION_METADATA_FIELD)).map(Schema.Field::pos).orElse(-1);
+  private static int getHoodieOperationPos(HoodieSchema schema) {
+    return 
Option.ofNullable(schema.getField(HoodieRecord.OPERATION_METADATA_FIELD))

Review Comment:
   Addressed



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