Skip to content

Commit

Permalink
addresses PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
noob-se7en committed Dec 18, 2024
1 parent cc70645 commit 903d519
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
*/
public class RealtimeToOfflineSegmentsTaskMetadata extends BaseTaskMetadata {

private static final String WINDOW_START_KEY = "windowStartMs";
private static final String WINDOW_START_KEY = "watermarkMs";
private static final String WINDOW_END_KEY = "windowEndMs";
private static final String COMMA_SEPARATOR = ",";
private static final String SEGMENT_NAME_VS_EXPECTED_RTO_RESULT_ID_KEY = "segmentVsExpectedRTOResultId";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void testToFromZNRecord() {
new RealtimeToOfflineSegmentsTaskMetadata("testTable_REALTIME", 1000);
ZNRecord znRecord = metadata.toZNRecord();
assertEquals(znRecord.getId(), "testTable_REALTIME");
assertEquals(znRecord.getSimpleField("windowStartMs"), "1000");
assertEquals(znRecord.getSimpleField("watermarkMs"), "1000");

RealtimeToOfflineSegmentsTaskMetadata realtimeToOfflineSegmentsTaskMetadata =
RealtimeToOfflineSegmentsTaskMetadata.fromZNRecord(znRecord);
Expand Down Expand Up @@ -83,7 +83,7 @@ public void testToFromZNRecordWithWindowIntervalAndExpectedResults() {

ZNRecord znRecord = originalMetadata.toZNRecord();
assertEquals(znRecord.getId(), "testTable_REALTIME");
assertEquals(znRecord.getSimpleField("windowStartMs"), "1000");
assertEquals(znRecord.getSimpleField("watermarkMs"), "1000");
assertEquals(znRecord.getSimpleField("windowEndMs"), "2000");
Map<String, List<String>> listFields = znRecord.getListFields();
Map<String, Map<String, String>> mapFields = znRecord.getMapFields();
Expand Down

0 comments on commit 903d519

Please sign in to comment.