You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/08/27 06:59:24 UTC

[GitHub] [incubator-seatunnel] guanboo opened a new pull request, #2544: issues#1946 add [Druid] Source & Sink

guanboo opened a new pull request, #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544

   <!--
   
   Thank you for contributing to SeaTunnel! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   ## Contribution Checklist
   
     - Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/incubator-seatunnel/issues).
   
     - Name the pull request in the form "[Feature] [component] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
   
     - Minor fixes should be named following this pattern: `[hotfix] [docs] Fix typo in README.md doc`.
   
   -->
   
   ## Purpose of this pull request
   
   <!-- Describe the purpose of this pull request. For example: This pull request adds checkstyle plugin.-->
   
   ## Check list
   
   * [ ] Code changed are covered with tests, or it does not need tests for reason:
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according
     [New License Guide](https://github.com/apache/incubator-seatunnel/blob/dev/docs/en/contribution/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs
   


-- 
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


[GitHub] [incubator-seatunnel] CalvinKirs commented on pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#issuecomment-1235019872

   Hi, please resolve conflicts files


-- 
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


[GitHub] [incubator-seatunnel] guanboo commented on pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
guanboo commented on PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#issuecomment-1236364930

   done add source & sink doc


-- 
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


[GitHub] [incubator-seatunnel] guanboo commented on pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
guanboo commented on PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#issuecomment-1229138485

   fix:issues#1946 add [Druid] Source & Sink


-- 
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


[GitHub] [incubator-seatunnel] guanboo commented on a diff in pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
guanboo commented on code in PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#discussion_r957184744


##########
seatunnel-connectors-v2/connector-druid/pom.xml:
##########
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>seatunnel-connectors-v2</artifactId>
+        <groupId>org.apache.seatunnel</groupId>
+        <version>${revision}</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>connector-druid</artifactId>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.seatunnel</groupId>
+            <artifactId>connector-common</artifactId>
+            <version>${project.version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpclient</artifactId>
+            <version>4.5.13</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.calcite.avatica</groupId>
+            <artifactId>avatica-core</artifactId>
+            <version>1.15.0</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.druid</groupId>
+            <artifactId>druid-core</artifactId>
+            <version>RELEASE</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.druid</groupId>
+            <artifactId>druid-indexing-service</artifactId>
+            <scope>compile</scope>

Review Comment:
   In JsonUtil OBJECT_MAPPER configure state cannot be shared.need new another ObjectMapper



-- 
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


[GitHub] [incubator-seatunnel] Hisoka-X commented on a diff in pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
Hisoka-X commented on code in PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#discussion_r962510627


##########
config/spark.streaming.conf.template:
##########
@@ -26,7 +26,7 @@ env {
   spark.executor.instances = 2
   spark.executor.cores = 1
   spark.executor.memory = "1g"
-  spark.stream.batchDuration = 5
+  spark.streaming.batchDuration = 5

Review Comment:
   Please check this https://github.com/apache/incubator-seatunnel/pull/2575



##########
docs/zh-CN/spark/quick-start.md:
##########
@@ -34,7 +34,7 @@ ln -s seatunnel-<version> seatunnel
 ```bash
 env {
   # seatunnel defined streaming batch duration in seconds
-  spark.stream.batchDuration = 5

Review Comment:
   same as above



##########
pom.xml:
##########
@@ -204,6 +204,11 @@
         <p3c-pmd.version>1.3.0</p3c-pmd.version>
         <maven-scm-provider-jgit.version>1.9.5</maven-scm-provider-jgit.version>
         <testcontainer.version>1.16.3</testcontainer.version>
+        <jackson-datatype-joda.version>2.12.1</jackson-datatype-joda.version>

Review Comment:
   Don't add the connector's dependency in root pom, just use it in connector's pom.xml, reference: https://github.com/apache/incubator-seatunnel/pull/2630/files



##########
seatunnel-apis/seatunnel-api-spark/src/main/scala/org/apache/seatunnel/spark/stream/SparkStreamingExecution.scala:
##########
@@ -48,12 +48,9 @@ class SparkStreamingExecution(sparkEnvironment: SparkEnvironment)
             dataset)
         }
         var ds = dataset
-
-        if (ds.take(1).length > 0) {

Review Comment:
   Can't delete this, check this: https://github.com/apache/incubator-seatunnel/pull/2578



##########
docs/en/connector-v2/sink/Druid.md:
##########
@@ -0,0 +1,101 @@
+# Druid

Review Comment:
   Please update doc to match new format, reference: https://github.com/apache/incubator-seatunnel/pull/2625



##########
docs/en/contribution/setup.md:
##########
@@ -35,12 +35,6 @@ Otherwise, your code could not start in JetBrains IntelliJ IDEA correctly.
 ./mvnw install -Dmaven.test.skip
 ```
 
-### Building SeaTunnel from source

Review Comment:
   Why remove 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


[GitHub] [incubator-seatunnel] guanboo commented on pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
guanboo commented on PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#issuecomment-1236591384

   OK  THX!
   I can create another PR only with Druid Source/Sink.Done today or tomorrow


-- 
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


[GitHub] [incubator-seatunnel] guanboo commented on a diff in pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
guanboo commented on code in PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#discussion_r960173112


##########
seatunnel-connectors-v2/connector-druid/src/main/java/org/apache/seatunnel/connectors/seatunnel/druid/client/DruidInputFormat.java:
##########
@@ -0,0 +1,201 @@
+package org.apache.seatunnel.connectors.seatunnel.druid.client;
+
+import lombok.Data;
+import org.apache.seatunnel.api.table.type.*;
+import org.apache.seatunnel.connectors.seatunnel.druid.config.DruidSourceOptions;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.apache.seatunnel.connectors.seatunnel.druid.config.DruidTypeMapper;
+
+import java.io.IOException;
+import java.io.Serializable;
+import java.sql.*;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * guanbo
+ */
+@Data
+public class DruidInputFormat implements Serializable {
+    private static final Logger LOGGER = LoggerFactory.getLogger(DruidInputFormat.class);
+
+    protected transient Connection connection;
+    protected transient PreparedStatement statement;
+    protected transient ResultSet resultSet;
+    protected SeaTunnelRowType rowTypeInfo;
+    protected DruidSourceOptions druidSourceOptions;
+
+
+    protected static final String KEY_WORDS = "_time";
+    protected static final String COLUMNS_DEFAULT = "*";
+    protected static final String QUERY_TEMPLATE = "SELECT %s FROM %s WHERE 1=1";
+
+    protected String quarySQL ;
+    protected boolean hasNext;
+
+    public DruidInputFormat(DruidSourceOptions druidSourceOptions) {
+        this.druidSourceOptions = druidSourceOptions;
+        this.rowTypeInfo = initTableField();
+    }
+
+    public ResultSetMetaData getResultSetMetaData() throws SQLException {
+        try {
+            quarySQL = getSQL();
+            connection = DriverManager.getConnection(druidSourceOptions.getURL());
+            statement = connection.prepareStatement(quarySQL, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
+            return statement.getMetaData();
+        } catch (SQLException se) {
+            throw new SQLException("ResultSetMetaData() failed." + se.getMessage(), se);
+        }
+    }
+    public void openInputFormat() {
+        try {
+            connection = DriverManager.getConnection(druidSourceOptions.getURL());
+            statement = connection.prepareStatement(quarySQL, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
+            resultSet = statement.executeQuery();
+            hasNext = resultSet.next();
+        } catch (SQLException se) {
+            throw new IllegalArgumentException("openInputFormat() failed." + se.getMessage(), se);
+        }
+    }
+
+    private String getSQL() throws SQLException {
+        String columns = "";
+        String startTimestamp = druidSourceOptions.getStartTimestamp();
+        String endTimestamp = druidSourceOptions.getEndTimestamp();
+        String dataSource = druidSourceOptions.getDatasource();
+
+        if (druidSourceOptions.getColumns() != null && druidSourceOptions.getColumns().size() > 0) {
+            if(druidSourceOptions.getColumns().contains(KEY_WORDS)){
+                LOGGER.error("DruidSorce columns not contains "  + KEY_WORDS);
+                return null;
+
+            }
+            columns = String.join(",", druidSourceOptions.getColumns());
+        }
+
+        String sql = String.format(QUERY_TEMPLATE, columns, dataSource);
+        if (startTimestamp != null) {
+            sql += " AND __time >=  '" + startTimestamp + "'";
+        }
+        if (endTimestamp != null) {
+            sql += " AND __time <  '" + endTimestamp + "'";
+        }
+        return sql;
+    }
+
+    public void closeInputFormat() {
+        try {
+            if (resultSet != null) {
+                resultSet.close();
+            }
+            if (statement != null) {
+                statement.close();
+            }
+        } catch (SQLException se) {
+            LOGGER.error("DruidInputFormat Statement couldn't be closed", se);
+        } finally {
+            statement = null;
+            resultSet = null;
+            try {
+                if (connection != null) {
+                    connection.close();
+                }
+            } catch (SQLException se) {
+                LOGGER.error("DruidInputFormat Connection couldn't be closed", se);
+            } finally {
+                connection = null;
+            }
+        }
+    }
+
+
+    /**
+     * Checks whether all data has been read.
+     *
+     * @return boolean value indication whether all data has been read.
+     */
+    public boolean reachedEnd() throws IOException {
+        return !hasNext;
+    }
+
+    /**
+     * Convert a row of data to seatunnelRow
+     */
+    public SeaTunnelRow nextRecord() throws IOException {
+        try {
+            if (!hasNext) {
+                return null;
+            }
+            SeaTunnelRow seaTunnelRow = toInternal(resultSet, rowTypeInfo);
+            // update hasNext after we've read the record
+            hasNext = resultSet.next();
+            return seaTunnelRow;
+        } catch (SQLException se) {
+            throw new IOException("Couldn't read data - " + se.getMessage(), se);
+        } catch (NullPointerException npe) {
+            throw new IOException("Couldn't access resultSet", npe);
+        }
+    }
+
+    public SeaTunnelRow toInternal(ResultSet rs, SeaTunnelRowType rowTypeInfo) throws SQLException{
+        List<Object> fields = new ArrayList<>();
+        SeaTunnelDataType<?>[] seaTunnelDataTypes = rowTypeInfo.getFieldTypes();
+
+        for (int i = 1; i <= seaTunnelDataTypes.length; i++) {
+            Object seatunnelField;
+            SeaTunnelDataType<?> seaTunnelDataType = seaTunnelDataTypes[i - 1];
+            if (null == rs.getObject(i)) {
+                seatunnelField = null;
+            }
+            else if (BasicType.BOOLEAN_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getBoolean(i);
+            } else if (BasicType.BYTE_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getByte(i);
+            } else if (BasicType.SHORT_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getShort(i);
+            } else if (BasicType.INT_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getInt(i);
+            } else if (BasicType.LONG_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getLong(i);
+            } else if (BasicType.FLOAT_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getFloat(i);
+            } else if (BasicType.DOUBLE_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getDouble(i);
+            } else if (BasicType.STRING_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getString(i);
+            }else if (LocalTimeType.LOCAL_DATE_TIME_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getDate(i);
+            }else if (LocalTimeType.LOCAL_TIME_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getDate(i);
+            }else if (LocalTimeType.LOCAL_DATE_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getDate(i);
+            }else {
+                throw new IllegalStateException("Unexpected value: " + seaTunnelDataType);
+            }
+
+            fields.add(seatunnelField);
+        }
+
+        return new SeaTunnelRow(fields.toArray());
+    }
+
+    private SeaTunnelRowType initTableField() {
+        ArrayList<SeaTunnelDataType<?>> seaTunnelDataTypes = new ArrayList<>();
+        ArrayList<String> fieldNames = new ArrayList<>();
+
+        try {
+            ResultSetMetaData resultSetMetaData = getResultSetMetaData();
+            for (int i = 1; i <= resultSetMetaData.getColumnCount(); i++) {
+                fieldNames.add(resultSetMetaData.getColumnName(i));
+                seaTunnelDataTypes.add(DruidTypeMapper.informationMapping.get(resultSetMetaData.getColumnTypeName(i)));
+            }
+        } catch (Exception e) {
+            LOGGER.warn("get row type info exception", e);

Review Comment:
   done



##########
seatunnel-connectors-v2/connector-druid/pom.xml:
##########
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>seatunnel-connectors-v2</artifactId>
+        <groupId>org.apache.seatunnel</groupId>
+        <version>${revision}</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>connector-druid</artifactId>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.seatunnel</groupId>
+            <artifactId>connector-common</artifactId>
+            <version>${project.version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpclient</artifactId>
+            <version>4.5.13</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.calcite.avatica</groupId>
+            <artifactId>avatica-core</artifactId>
+            <version>1.15.0</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.druid</groupId>
+            <artifactId>druid-core</artifactId>
+            <version>RELEASE</version>
+            <scope>compile</scope>

Review Comment:
   done



-- 
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


[GitHub] [incubator-seatunnel] guanboo commented on pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
guanboo commented on PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#issuecomment-1229138539

   fix:issues#1946 add [Druid] Source & Sink


-- 
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


[GitHub] [incubator-seatunnel] guanboo commented on a diff in pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
guanboo commented on code in PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#discussion_r960173011


##########
seatunnel-connectors-v2/connector-druid/src/main/java/org/apache/seatunnel/connectors/seatunnel/druid/client/DruidInputFormat.java:
##########
@@ -0,0 +1,201 @@
+package org.apache.seatunnel.connectors.seatunnel.druid.client;
+
+import lombok.Data;
+import org.apache.seatunnel.api.table.type.*;
+import org.apache.seatunnel.connectors.seatunnel.druid.config.DruidSourceOptions;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.apache.seatunnel.connectors.seatunnel.druid.config.DruidTypeMapper;
+
+import java.io.IOException;
+import java.io.Serializable;
+import java.sql.*;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * guanbo
+ */

Review Comment:
   done



##########
seatunnel-connectors-v2/connector-druid/src/main/java/org/apache/seatunnel/connectors/seatunnel/druid/client/DruidOutputFormat.java:
##########
@@ -0,0 +1,210 @@
+package org.apache.seatunnel.connectors.seatunnel.druid.client;
+
+import com.fasterxml.jackson.datatype.joda.JodaModule;
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.fasterxml.jackson.databind.DeserializationFeature;
+import com.fasterxml.jackson.databind.MapperFeature;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import lombok.Data;
+import org.apache.druid.data.input.MaxSizeSplitHintSpec;
+import org.apache.druid.data.input.impl.CsvInputFormat;
+import org.apache.druid.data.input.impl.DimensionsSpec;
+import org.apache.druid.data.input.impl.InlineInputSource;
+import org.apache.druid.data.input.impl.TimestampSpec;
+import org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexIOConfig;
+import org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexIngestionSpec;
+import org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexSupervisorTask;
+import org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexTuningConfig;
+import org.apache.druid.java.util.common.DateTimes;
+import org.apache.druid.java.util.common.granularity.Granularities;
+import org.apache.druid.segment.indexing.DataSchema;
+import org.apache.druid.segment.indexing.granularity.UniformGranularitySpec;
+import org.apache.seatunnel.api.table.type.SeaTunnelRow;
+import org.joda.time.DateTime;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.*;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.nio.charset.StandardCharsets;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+/**
+ * guanbo
+ */

Review Comment:
   done



##########
seatunnel-connectors-v2/connector-druid/src/main/java/org/apache/seatunnel/connectors/seatunnel/druid/config/DruidSinkConfig.java:
##########
@@ -0,0 +1,16 @@
+package org.apache.seatunnel.connectors.seatunnel.druid.config;
+
+import java.io.Serializable;
+
+/**
+ * guanbo
+ */

Review Comment:
   done



-- 
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


[GitHub] [incubator-seatunnel] Hisoka-X commented on pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
Hisoka-X commented on PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#issuecomment-1236587935

   Any update you can reopen this PR again, or create another PR only with Druid Source/Sink (recommend).


-- 
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


[GitHub] [incubator-seatunnel] guanboo commented on pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
guanboo commented on PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#issuecomment-1235098743

   done
   resolve conflicts files:
   seatunnel-connectors-v2/pom.xml
   pom.xml
   plugin-mapping.properties


-- 
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


[GitHub] [incubator-seatunnel] Hisoka-X commented on pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
Hisoka-X commented on PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#issuecomment-1236586860

   And you delete lots of code which shouldn't be deleted.


-- 
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


[GitHub] [incubator-seatunnel] guanboo commented on pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
guanboo commented on PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#issuecomment-1236984404

   done 
   #2651


-- 
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


[GitHub] [incubator-seatunnel] guanboo closed pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
guanboo closed pull request #2544: issues#1946 add [Druid] Source & Sink
URL: https://github.com/apache/incubator-seatunnel/pull/2544


-- 
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


[GitHub] [incubator-seatunnel] CalvinKirs commented on a diff in pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on code in PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#discussion_r956711669


##########
seatunnel-connectors-v2/connector-druid/src/main/java/org/apache/seatunnel/connectors/seatunnel/druid/client/DruidInputFormat.java:
##########
@@ -0,0 +1,201 @@
+package org.apache.seatunnel.connectors.seatunnel.druid.client;
+
+import lombok.Data;
+import org.apache.seatunnel.api.table.type.*;
+import org.apache.seatunnel.connectors.seatunnel.druid.config.DruidSourceOptions;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.apache.seatunnel.connectors.seatunnel.druid.config.DruidTypeMapper;
+
+import java.io.IOException;
+import java.io.Serializable;
+import java.sql.*;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * guanbo
+ */
+@Data
+public class DruidInputFormat implements Serializable {
+    private static final Logger LOGGER = LoggerFactory.getLogger(DruidInputFormat.class);
+
+    protected transient Connection connection;
+    protected transient PreparedStatement statement;
+    protected transient ResultSet resultSet;
+    protected SeaTunnelRowType rowTypeInfo;
+    protected DruidSourceOptions druidSourceOptions;
+
+
+    protected static final String KEY_WORDS = "_time";
+    protected static final String COLUMNS_DEFAULT = "*";
+    protected static final String QUERY_TEMPLATE = "SELECT %s FROM %s WHERE 1=1";
+
+    protected String quarySQL ;
+    protected boolean hasNext;
+
+    public DruidInputFormat(DruidSourceOptions druidSourceOptions) {
+        this.druidSourceOptions = druidSourceOptions;
+        this.rowTypeInfo = initTableField();
+    }
+
+    public ResultSetMetaData getResultSetMetaData() throws SQLException {
+        try {
+            quarySQL = getSQL();
+            connection = DriverManager.getConnection(druidSourceOptions.getURL());
+            statement = connection.prepareStatement(quarySQL, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
+            return statement.getMetaData();
+        } catch (SQLException se) {
+            throw new SQLException("ResultSetMetaData() failed." + se.getMessage(), se);
+        }
+    }
+    public void openInputFormat() {
+        try {
+            connection = DriverManager.getConnection(druidSourceOptions.getURL());
+            statement = connection.prepareStatement(quarySQL, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
+            resultSet = statement.executeQuery();
+            hasNext = resultSet.next();
+        } catch (SQLException se) {
+            throw new IllegalArgumentException("openInputFormat() failed." + se.getMessage(), se);
+        }
+    }
+
+    private String getSQL() throws SQLException {
+        String columns = "";
+        String startTimestamp = druidSourceOptions.getStartTimestamp();
+        String endTimestamp = druidSourceOptions.getEndTimestamp();
+        String dataSource = druidSourceOptions.getDatasource();
+
+        if (druidSourceOptions.getColumns() != null && druidSourceOptions.getColumns().size() > 0) {
+            if(druidSourceOptions.getColumns().contains(KEY_WORDS)){
+                LOGGER.error("DruidSorce columns not contains "  + KEY_WORDS);
+                return null;
+
+            }
+            columns = String.join(",", druidSourceOptions.getColumns());
+        }
+
+        String sql = String.format(QUERY_TEMPLATE, columns, dataSource);
+        if (startTimestamp != null) {
+            sql += " AND __time >=  '" + startTimestamp + "'";
+        }
+        if (endTimestamp != null) {
+            sql += " AND __time <  '" + endTimestamp + "'";
+        }
+        return sql;
+    }
+
+    public void closeInputFormat() {
+        try {
+            if (resultSet != null) {
+                resultSet.close();
+            }
+            if (statement != null) {
+                statement.close();
+            }
+        } catch (SQLException se) {
+            LOGGER.error("DruidInputFormat Statement couldn't be closed", se);
+        } finally {
+            statement = null;
+            resultSet = null;
+            try {
+                if (connection != null) {
+                    connection.close();
+                }
+            } catch (SQLException se) {
+                LOGGER.error("DruidInputFormat Connection couldn't be closed", se);
+            } finally {
+                connection = null;
+            }
+        }
+    }
+
+
+    /**
+     * Checks whether all data has been read.
+     *
+     * @return boolean value indication whether all data has been read.
+     */
+    public boolean reachedEnd() throws IOException {
+        return !hasNext;
+    }
+
+    /**
+     * Convert a row of data to seatunnelRow
+     */
+    public SeaTunnelRow nextRecord() throws IOException {
+        try {
+            if (!hasNext) {
+                return null;
+            }
+            SeaTunnelRow seaTunnelRow = toInternal(resultSet, rowTypeInfo);
+            // update hasNext after we've read the record
+            hasNext = resultSet.next();
+            return seaTunnelRow;
+        } catch (SQLException se) {
+            throw new IOException("Couldn't read data - " + se.getMessage(), se);
+        } catch (NullPointerException npe) {
+            throw new IOException("Couldn't access resultSet", npe);
+        }
+    }
+
+    public SeaTunnelRow toInternal(ResultSet rs, SeaTunnelRowType rowTypeInfo) throws SQLException{
+        List<Object> fields = new ArrayList<>();
+        SeaTunnelDataType<?>[] seaTunnelDataTypes = rowTypeInfo.getFieldTypes();
+
+        for (int i = 1; i <= seaTunnelDataTypes.length; i++) {
+            Object seatunnelField;
+            SeaTunnelDataType<?> seaTunnelDataType = seaTunnelDataTypes[i - 1];
+            if (null == rs.getObject(i)) {
+                seatunnelField = null;
+            }
+            else if (BasicType.BOOLEAN_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getBoolean(i);
+            } else if (BasicType.BYTE_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getByte(i);
+            } else if (BasicType.SHORT_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getShort(i);
+            } else if (BasicType.INT_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getInt(i);
+            } else if (BasicType.LONG_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getLong(i);
+            } else if (BasicType.FLOAT_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getFloat(i);
+            } else if (BasicType.DOUBLE_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getDouble(i);
+            } else if (BasicType.STRING_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getString(i);
+            }else if (LocalTimeType.LOCAL_DATE_TIME_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getDate(i);
+            }else if (LocalTimeType.LOCAL_TIME_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getDate(i);
+            }else if (LocalTimeType.LOCAL_DATE_TYPE.equals(seaTunnelDataType)) {
+                seatunnelField = rs.getDate(i);
+            }else {
+                throw new IllegalStateException("Unexpected value: " + seaTunnelDataType);
+            }
+
+            fields.add(seatunnelField);
+        }
+
+        return new SeaTunnelRow(fields.toArray());
+    }
+
+    private SeaTunnelRowType initTableField() {
+        ArrayList<SeaTunnelDataType<?>> seaTunnelDataTypes = new ArrayList<>();
+        ArrayList<String> fieldNames = new ArrayList<>();
+
+        try {
+            ResultSetMetaData resultSetMetaData = getResultSetMetaData();
+            for (int i = 1; i <= resultSetMetaData.getColumnCount(); i++) {
+                fieldNames.add(resultSetMetaData.getColumnName(i));
+                seaTunnelDataTypes.add(DruidTypeMapper.informationMapping.get(resultSetMetaData.getColumnTypeName(i)));
+            }
+        } catch (Exception e) {
+            LOGGER.warn("get row type info exception", e);

Review Comment:
   Should throw exception?



-- 
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


[GitHub] [incubator-seatunnel] Hisoka-X closed pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
Hisoka-X closed pull request #2544: issues#1946 add [Druid] Source & Sink
URL: https://github.com/apache/incubator-seatunnel/pull/2544


-- 
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


[GitHub] [incubator-seatunnel] CalvinKirs commented on a diff in pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on code in PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#discussion_r956711466


##########
seatunnel-connectors-v2/connector-druid/pom.xml:
##########
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>seatunnel-connectors-v2</artifactId>
+        <groupId>org.apache.seatunnel</groupId>
+        <version>${revision}</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>connector-druid</artifactId>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.seatunnel</groupId>
+            <artifactId>connector-common</artifactId>
+            <version>${project.version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpclient</artifactId>
+            <version>4.5.13</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.calcite.avatica</groupId>
+            <artifactId>avatica-core</artifactId>
+            <version>1.15.0</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.druid</groupId>
+            <artifactId>druid-core</artifactId>
+            <version>RELEASE</version>
+            <scope>compile</scope>

Review Comment:
   The dependency version should manage by root pom



-- 
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


[GitHub] [incubator-seatunnel] ashulin commented on pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
ashulin commented on PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#issuecomment-1229215992

   @ic4y PTAL, thx.


-- 
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


[GitHub] [incubator-seatunnel] ic4y commented on a diff in pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
ic4y commented on code in PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#discussion_r957090823


##########
seatunnel-connectors-v2/connector-druid/src/main/java/org/apache/seatunnel/connectors/seatunnel/druid/client/DruidInputFormat.java:
##########
@@ -0,0 +1,201 @@
+package org.apache.seatunnel.connectors.seatunnel.druid.client;
+
+import lombok.Data;
+import org.apache.seatunnel.api.table.type.*;
+import org.apache.seatunnel.connectors.seatunnel.druid.config.DruidSourceOptions;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.apache.seatunnel.connectors.seatunnel.druid.config.DruidTypeMapper;
+
+import java.io.IOException;
+import java.io.Serializable;
+import java.sql.*;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * guanbo
+ */

Review Comment:
   delete meaningless comments



##########
seatunnel-connectors-v2/connector-druid/src/main/java/org/apache/seatunnel/connectors/seatunnel/druid/config/DruidSinkConfig.java:
##########
@@ -0,0 +1,16 @@
+package org.apache.seatunnel.connectors.seatunnel.druid.config;
+
+import java.io.Serializable;
+
+/**
+ * guanbo
+ */

Review Comment:
   Check all `guanbo` places, delete it.



##########
seatunnel-connectors-v2/connector-druid/src/main/java/org/apache/seatunnel/connectors/seatunnel/druid/client/DruidOutputFormat.java:
##########
@@ -0,0 +1,210 @@
+package org.apache.seatunnel.connectors.seatunnel.druid.client;
+
+import com.fasterxml.jackson.datatype.joda.JodaModule;
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.fasterxml.jackson.databind.DeserializationFeature;
+import com.fasterxml.jackson.databind.MapperFeature;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import lombok.Data;
+import org.apache.druid.data.input.MaxSizeSplitHintSpec;
+import org.apache.druid.data.input.impl.CsvInputFormat;
+import org.apache.druid.data.input.impl.DimensionsSpec;
+import org.apache.druid.data.input.impl.InlineInputSource;
+import org.apache.druid.data.input.impl.TimestampSpec;
+import org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexIOConfig;
+import org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexIngestionSpec;
+import org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexSupervisorTask;
+import org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexTuningConfig;
+import org.apache.druid.java.util.common.DateTimes;
+import org.apache.druid.java.util.common.granularity.Granularities;
+import org.apache.druid.segment.indexing.DataSchema;
+import org.apache.druid.segment.indexing.granularity.UniformGranularitySpec;
+import org.apache.seatunnel.api.table.type.SeaTunnelRow;
+import org.joda.time.DateTime;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.*;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.nio.charset.StandardCharsets;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+/**
+ * guanbo
+ */

Review Comment:
   same above



-- 
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


[GitHub] [incubator-seatunnel] guanboo commented on a diff in pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
guanboo commented on code in PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#discussion_r960173215


##########
seatunnel-connectors-v2/connector-druid/src/main/java/org/apache/seatunnel/connectors/seatunnel/druid/client/DruidInputFormat.java:
##########
@@ -0,0 +1,201 @@
+package org.apache.seatunnel.connectors.seatunnel.druid.client;

Review Comment:
   done



##########
seatunnel-connectors-v2/connector-druid/pom.xml:
##########
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"

Review Comment:
   done



-- 
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


[GitHub] [incubator-seatunnel] CalvinKirs commented on a diff in pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on code in PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#discussion_r956711346


##########
seatunnel-connectors-v2/connector-druid/pom.xml:
##########
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>seatunnel-connectors-v2</artifactId>
+        <groupId>org.apache.seatunnel</groupId>
+        <version>${revision}</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>connector-druid</artifactId>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.seatunnel</groupId>
+            <artifactId>connector-common</artifactId>
+            <version>${project.version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpclient</artifactId>
+            <version>4.5.13</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.calcite.avatica</groupId>
+            <artifactId>avatica-core</artifactId>
+            <version>1.15.0</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.druid</groupId>
+            <artifactId>druid-core</artifactId>
+            <version>RELEASE</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.druid</groupId>
+            <artifactId>druid-indexing-service</artifactId>
+            <scope>compile</scope>

Review Comment:
   We already have the class JsonUtil, please use 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


[GitHub] [incubator-seatunnel] ashulin commented on a diff in pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
ashulin commented on code in PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#discussion_r956595107


##########
seatunnel-connectors-v2/connector-druid/src/main/java/org/apache/seatunnel/connectors/seatunnel/druid/client/DruidInputFormat.java:
##########
@@ -0,0 +1,201 @@
+package org.apache.seatunnel.connectors.seatunnel.druid.client;

Review Comment:
   same above



##########
seatunnel-connectors-v2/connector-druid/pom.xml:
##########
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"

Review Comment:
   add license header



-- 
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


[GitHub] [incubator-seatunnel] Hisoka-X commented on pull request #2544: issues#1946 add [Druid] Source & Sink

Posted by GitBox <gi...@apache.org>.
Hisoka-X commented on PR #2544:
URL: https://github.com/apache/incubator-seatunnel/pull/2544#issuecomment-1236585925

   I'm sorry, but I want reject this PR. Because too many code update but no connection with Druid Source/Sink. You can split it into multi PR, each have only one main purpose. Thanks again!


-- 
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