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

[Bug][chunjun-connectors] jdbc's properties not work where jdbc's reader has set properties #1874

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public JdbcSourceFactory(
if (StringUtils.isBlank(jdbcConfig.getIncreColumn())) jdbcConfig.setPolling(false);
jdbcConfig.setColumn(syncConfig.getReader().getFieldList());

Properties properties = syncConfig.getWriter().getProperties("properties", null);
Properties properties = syncConfig.getReader().getProperties("properties", null);
jdbcConfig.setProperties(properties);

setDefaultSplitStrategy(jdbcConfig);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void toStringShouldReturnAStringWithAllTheFields() {
baseFileConf.setNextCheckRows(5000L);

String expected =
"BaseFileConfig(fromLine=1, path=path, fileName=fileName, writeMode=writeMode, compress=compress, encoding=UTF-8, maxFileSize=1024, nextCheckRows=5000, suffix=null)";
"BaseFileConfig(fromLine=1, path=path, fileName=fileName, writeMode=writeMode, compress=compress, encoding=UTF-8, maxFileSize=1024, nextCheckRows=5000, suffix=null, jobIdentifier=)";

assertEquals(expected, baseFileConf.toString());
}
Expand Down
Loading