Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues#1946 add [Druid] Source & Sink #2544

Closed
wants to merge 9 commits into from
Closed

issues#1946 add [Druid] Source & Sink #2544

wants to merge 9 commits into from

Conversation

guanboo
Copy link

@guanboo guanboo commented Aug 27, 2022

Purpose of this pull request

Check list

@guanboo
Copy link
Author

guanboo commented Aug 27, 2022

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

@guanboo guanboo closed this Aug 27, 2022
@guanboo guanboo reopened this Aug 27, 2022
@guanboo
Copy link
Author

guanboo commented Aug 27, 2022

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

Copy link
Member

@ashulin ashulin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Please add the license header.
  2. Maybe you can add druid dialect in jdbc connector.

@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add license header

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1,201 @@
package org.apache.seatunnel.connectors.seatunnel.druid.client;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same above

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ashulin
Copy link
Member

ashulin commented Aug 27, 2022

@ic4y PTAL, thx.

Comment on lines 39 to 42
<dependency>
<groupId>org.apache.druid</groupId>
<artifactId>druid-indexing-service</artifactId>
<scope>compile</scope>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have the class JsonUtil, please use this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment on lines 15 to 37
<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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependency version should manage by root pom

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 194 to 195
} catch (Exception e) {
LOGGER.warn("get row type info exception", e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should throw exception?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

@hailin0 hailin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add connector-v2 e2e-testcase & docs

reference:#2499

Comment on lines 16 to 18
/**
* guanbo
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete meaningless comments

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 38 to 40
/**
* guanbo
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same above

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 5 to 7
/**
* guanbo
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check all guanbo places, delete it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@CalvinKirs
Copy link
Member

Hi, please resolve conflicts files

@guanboo
Copy link
Author

guanboo commented Sep 2, 2022

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

…k doc and DEFAULT_TIMESTAMP_MISSING_VALUE assign initial value
@guanboo
Copy link
Author

guanboo commented Sep 4, 2022

done add source & sink doc

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check this #2575

@@ -0,0 +1,101 @@
# Druid
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update doc to match new format, reference: #2625

@@ -35,12 +35,6 @@ Otherwise, your code could not start in JetBrains IntelliJ IDEA correctly.
./mvnw install -Dmaven.test.skip
```

### Building SeaTunnel from source
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this?

@@ -34,7 +34,7 @@ ln -s seatunnel-<version> seatunnel
```bash
env {
# seatunnel defined streaming batch duration in seconds
spark.stream.batchDuration = 5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@@ -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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@@ -48,12 +48,9 @@ class SparkStreamingExecution(sparkEnvironment: SparkEnvironment)
dataset)
}
var ds = dataset

if (ds.take(1).length > 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't delete this, check this: #2578

@Hisoka-X
Copy link
Member

Hisoka-X commented Sep 5, 2022

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!

@Hisoka-X
Copy link
Member

Hisoka-X commented Sep 5, 2022

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

@Hisoka-X
Copy link
Member

Hisoka-X commented Sep 5, 2022

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

@Hisoka-X Hisoka-X closed this Sep 5, 2022
@guanboo
Copy link
Author

guanboo commented Sep 5, 2022

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

@guanboo
Copy link
Author

guanboo commented Sep 5, 2022

done
#2651

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants