Skip to content

Commit

Permalink
fix:Remove redundant comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xxsc0529 committed Jul 25, 2024
1 parent ce60e3d commit 3be69bc
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import org.apache.inlong.sort.protocol.node.extract.MySqlExtractNode;
import org.apache.inlong.sort.protocol.node.load.OceanBaseLoadNode;
import org.apache.inlong.sort.protocol.transformation.FieldRelation;
import org.apache.inlong.sort.protocol.transformation.FilterFunction;
import org.apache.inlong.sort.protocol.transformation.relation.NodeRelation;

import lombok.extern.slf4j.Slf4j;
Expand All @@ -39,7 +38,6 @@
import org.junit.Assert;
import org.junit.Test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
Expand Down Expand Up @@ -80,15 +78,13 @@ private OceanBaseLoadNode buildMysqlLoadNode() {
new FieldRelation(new FieldInfo("phone", new IntFormatInfo()),
new FieldInfo("phone", new IntFormatInfo())));

// Support delete event (sink.enable-delete='true'), requires OceanBase table to enable batch delete function
Map<String, String> properties = new HashMap<>();
properties.put("dirty.side-output.connector", "log");
properties.put("dirty.ignore", "true");
properties.put("dirty.side-output.enable", "true");
properties.put("dirty.side-output.format", "csv");
properties.put("dirty.side-output.labels",
"SYSTEM_TIME=${SYSTEM_TIME}&DIRTY_TYPE=${DIRTY_TYPE}&database=inlong&table=inlong_oceanbase");
List<FilterFunction> filters = new ArrayList<>();
return new OceanBaseLoadNode("2", "mysql_output", fields, fieldRelations, null,
null, null, properties, "jdbc:mysql://localhost:2883/test",
"root", "123456", "t_ds_user", "id");
Expand All @@ -111,7 +107,7 @@ private NodeRelation buildNodeRelation(List<Node> inputs, List<Node> outputs) {
* Test flink sql task for extract is mysql {@link MySqlExtractNode} and load is oceanbase {@link OceanBaseLoadNode}
*/
@Test
public void testMySqlExtractNodeToOceanBaseLoadNodeSqlParse() throws Exception {
public void testMySqlExtractNodeToOceanBaseLoadNodeSqlParse() {
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
env.setParallelism(1);
env.enableCheckpointing(10000);
Expand Down

0 comments on commit 3be69bc

Please sign in to comment.