[feature][plugin][sybase] datax support sybase plugins. #1780

update package
This commit is contained in:
xiaopengm 2023-05-09 17:20:23 +08:00
parent e158e5845b
commit 543a67273f
2 changed files with 6 additions and 5 deletions

View File

@ -14,21 +14,21 @@
<include>plugin.json</include>
<include>plugin_job_template.json</include>
</includes>
<outputDirectory>plugin/reader/oraclereader</outputDirectory>
<outputDirectory>plugin/reader/sybasereader</outputDirectory>
</fileSet>
<fileSet>
<directory>target/</directory>
<includes>
<include>oraclereader-0.0.1-SNAPSHOT.jar</include>
<include>sybasereader-0.0.1-SNAPSHOT.jar</include>
</includes>
<outputDirectory>plugin/reader/oraclereader</outputDirectory>
<outputDirectory>plugin/reader/sybasereader</outputDirectory>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
<outputDirectory>plugin/reader/oraclereader/libs</outputDirectory>
<outputDirectory>plugin/reader/sybasereader/libs</outputDirectory>
<scope>runtime</scope>
</dependencySet>
</dependencySets>

View File

@ -15,7 +15,7 @@ import com.alibaba.datax.plugin.rdbms.reader.Constant;
public class SybaseReader extends Reader {
private static final DataBaseType DATABASE_TYPE = DataBaseType.Oracle;
private static final DataBaseType DATABASE_TYPE = DataBaseType.Sybase;
public static class Job extends Reader.Job {
private static final Logger LOG = LoggerFactory
@ -63,6 +63,7 @@ public class SybaseReader extends Reader {
com.alibaba.datax.plugin.rdbms.reader.Constant.FETCH_SIZE,
Constants.DEFAULT_FETCH_SIZE);
if (fetchSize < 1) {
LOG.warn("对 sybasereader 需要配置 fetchSize, 对性能提升有较大影响 请配置fetchSize.");
}
originalConfig.set(
com.alibaba.datax.plugin.rdbms.reader.Constant.FETCH_SIZE,