CosmosNi commented on code in PR #8173:
URL: https://github.com/apache/seatunnel/pull/8173#discussion_r1918068725
##########
seatunnel-core/seatunnel-flink-starter/seatunnel-flink-starter-common/src/main/java/org/apache/seatunnel/core/starter/flink/execution/TransformExecuteProcessor.java:
##########
@@ -155,20 +169,59 @@ protected DataStream<SeaTunnelRow> flinkTransform(
flinkRuntimeEnvironment
.getStreamExecutionEnvironment()
.clean(
- row ->
-
((SeaTunnelMapTransform<SeaTunnelRow>)
-
transform)
- .map(row))))
+ new FlinkRichMapFunction(
+ transform, metricName,
pluginOutput))))
// null value shouldn't be passed to downstream
.filter(Objects::nonNull);
}
- public static class ArrayFlatMap implements FlatMapFunction<SeaTunnelRow,
SeaTunnelRow> {
+ public static class FlinkRichMapFunction extends
RichMapFunction<SeaTunnelRow, SeaTunnelRow> {
+ private MetricsContext metricsContext; //
Review Comment:
get
--
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]