You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "TyrantLucifer (via GitHub)" <gi...@apache.org> on 2023/04/11 03:51:32 UTC

[GitHub] [incubator-seatunnel] TyrantLucifer commented on a diff in pull request #4504: [Improve][core/transformv2]flink transform v2 use richflatmap instead flatmap

TyrantLucifer commented on code in PR #4504:
URL: https://github.com/apache/incubator-seatunnel/pull/4504#discussion_r1162272062


##########
seatunnel-core/seatunnel-flink-starter/seatunnel-flink-starter-common/src/main/java/org/apache/seatunnel/core/starter/flink/execution/TransformExecuteProcessor.java:
##########
@@ -120,7 +121,19 @@ protected DataStream<Row> flinkTransform(SeaTunnelTransform transform, DataStrea
                 new FlinkRowConverter(transform.getProducedType());
         DataStream<Row> output =
                 stream.flatMap(
-                        new FlatMapFunction<Row, Row>() {
+                        new RichFlatMapFunction<Row, Row>() {
+                            @Override
+                            public void open(Configuration parameters) throws Exception {
+                                super.open(parameters);

Review Comment:
   Why add this? Could you please explain the meaning of this?



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org