yuchen-ecnu commented on code in PR #21656:
URL: https://github.com/apache/flink/pull/21656#discussion_r1068081828
##########
flink-runtime-web/web-dashboard/src/app/components/humanize-watermark.pipe.ts:
##########
@@ -35,3 +35,19 @@ export class HumanizeWatermarkPipe implements PipeTransform {
}
}
}
+
+@Pipe({
+ name: 'humanizeWatermarkToDate',
+ standalone: true
+})
+export class HumanizeWatermarkToDatePipe implements PipeTransform {
+ constructor(private readonly configService: ConfigService) {}
+
+ public transform(value: number): number | string {
+ if (isNaN(value) || value <= this.configService.LONG_MIN_VALUE) {
+ return 'No Watermark (Watermarks are only available if EventTime is
used)';
Review Comment:
Yes, here contain some duplicated text. I have replaced it with `-`.
--
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]