pvary commented on code in PR #14148:
URL: https://github.com/apache/iceberg/pull/14148#discussion_r2366958290


##########
flink/v2.0/flink/src/test/java/org/apache/iceberg/flink/TestHelpers.java:
##########
@@ -223,6 +232,30 @@ public static void assertRowData(
     }
   }
 
+  private static @Nullable Object getExpectedValue(
+      Map<Integer, Object> idToConstant,
+      int pos,
+      Types.NestedField expectedField,
+      Record expected) {
+    Object expectedValue;
+    int id = expectedField.fieldId();
+    if (id == MetadataColumns.ROW_ID.fieldId()) {
+      expectedValue = expected.getField(expectedField.name());
+      if (expectedValue == null && idToConstant != null) {
+        expectedValue = (Long) idToConstant.get(id) + pos;
+      }
+

Review Comment:
   nit: we don't need newline here



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to