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

[feature][datasource] Main add doris #142

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[feature] merge main
  • Loading branch information
XiaoJiang521 committed Nov 13, 2023
commit 6edad87cdb5a5a5eede6830cb44ab87eee10178b
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ public class DatasourceLoadConfig {
classLoaderFactoryName.put(
"JDBC-STARROCKS",
"org.apache.seatunnel.datasource.plugin.starrocks.jdbc.StarRocksJdbcDataSourceFactory");
classLoaderFactoryName.put(
"MONGODB", "com.apache.seatunnel.datasource.plugin.mongodb.MongoDataSourceFactory");
classLoaderFactoryName.put(
"DORIS",
"com.apache.seatunnel.datasource.plugin.doris.jdbc.DorisJdbcDataSourceFactory");
Expand All @@ -114,6 +116,7 @@ public class DatasourceLoadConfig {
classLoaderJarName.put("STARROCKS", "datasource-starrocks-");
classLoaderJarName.put("S3-REDSHIFT", "datasource-s3redshift-");
classLoaderJarName.put("JDBC-STARROCKS", "datasource-jdbc-starrocks-");
classLoaderJarName.put("MONGODB", "datasource-mongodb-");
classLoaderJarName.put("DORIS", "datasource-jdbc-doris-");
}

Expand All @@ -132,7 +135,8 @@ public class DatasourceLoadConfig {
"S3",
"SqlServer-CDC",
"Doris",
"StarRocks");
"StarRocks",
"MongoDB");

public static Map<String, DatasourceClassLoader> datasourceClassLoaders = new HashMap<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public OptionRule getDataSourceOptions(@NonNull String pluginName) {
}

@Override
public OptionRule getDatasourceMetadataFieldsByDataSourceName(@NonNull String pluginName) {
public OptionRule getVirtualTableOptions(@NonNull String pluginName) {
return MongoOptionRule.metadataRule();
}

Expand Down
1 change: 1 addition & 0 deletions seatunnel-datasource/seatunnel-datasource-plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<module>datasource-jdbc-tidb</module>
<module>datasource-jdbc-common</module>
<module>datasource-jdbc-doris</module>
<module>datasource-mongodb</module>
</modules>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ datasource_list=(
"datasource-sqlserver-cdc"
"datasource-starrocks"
"datasource-jdbc-doris"
"datasource-mongodb"
)

# the datasource default version is 1.0.0, you can also choose a custom version. eg: 1.1.2: sh install-datasource.sh 2.1.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ connector-datasource-mapper:
- Doris


MongoDB:
dataSources:
- MongoDB

sourceDatasourceFeatures:
JDBC-Mysql:
businessMode:
Expand Down Expand Up @@ -137,8 +141,6 @@ connector-datasource-mapper:
- BATCH




sinkDatasourceFeatures:
JDBC-Mysql:
businessMode:
Expand Down Expand Up @@ -217,3 +219,10 @@ connector-datasource-mapper:
sceneMode:
- SINGLE_TABLE

MongoDB:
businessMode:
- DATA_INTEGRATION
- DATA_REPLICA
sceneMode:
- SINGLE_TABLE
- MULTIPLE_TABLE
14 changes: 14 additions & 0 deletions seatunnel-web-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,20 @@
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>datasource-mongodb</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>datasource-jdbc-doris</artifactId>
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.