Skip to content

Commit

Permalink
[cdc-connector][sqlserver] Fix SqlServerTableSource params order error (
Browse files Browse the repository at this point in the history
  • Loading branch information
gong authored Dec 11, 2023
1 parent 43bd5c0 commit 08d6b81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ public DynamicTableSource createDynamicTableSource(Context context) {
splitMetaGroupSize,
fetchSize,
connectTimeout,
connectionPoolSize,
connectMaxRetries,
connectionPoolSize,
distributionFactorUpper,
distributionFactorLower,
chunkKeyColumn,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public SqlServerTableSource(
this.splitMetaGroupSize = splitMetaGroupSize;
this.fetchSize = fetchSize;
this.connectTimeout = connectTimeout;
this.connectionPoolSize = connectionPoolSize;
this.connectMaxRetries = connectMaxRetries;
this.connectionPoolSize = connectionPoolSize;
this.distributionFactorUpper = distributionFactorUpper;
this.distributionFactorLower = distributionFactorLower;
this.chunkKeyColumn = chunkKeyColumn;
Expand Down Expand Up @@ -178,8 +178,8 @@ public ScanRuntimeProvider getScanRuntimeProvider(ScanContext scanContext) {
.splitMetaGroupSize(splitMetaGroupSize)
.fetchSize(fetchSize)
.connectTimeout(connectTimeout)
.connectionPoolSize(connectionPoolSize)
.connectMaxRetries(connectMaxRetries)
.connectionPoolSize(connectionPoolSize)
.distributionFactorUpper(distributionFactorUpper)
.distributionFactorLower(distributionFactorLower)
.chunkKeyColumn(chunkKeyColumn)
Expand Down Expand Up @@ -239,8 +239,8 @@ public DynamicTableSource copy() {
splitMetaGroupSize,
fetchSize,
connectTimeout,
connectionPoolSize,
connectMaxRetries,
connectionPoolSize,
distributionFactorUpper,
distributionFactorLower,
chunkKeyColumn,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ public void testCommonProperties() {
SourceOptions.CHUNK_META_GROUP_SIZE.defaultValue(),
SourceOptions.SCAN_SNAPSHOT_FETCH_SIZE.defaultValue(),
JdbcSourceOptions.CONNECT_TIMEOUT.defaultValue(),
JdbcSourceOptions.CONNECTION_POOL_SIZE.defaultValue(),
JdbcSourceOptions.CONNECT_MAX_RETRIES.defaultValue(),
JdbcSourceOptions.CONNECTION_POOL_SIZE.defaultValue(),
JdbcSourceOptions.SPLIT_KEY_EVEN_DISTRIBUTION_FACTOR_UPPER_BOUND
.defaultValue(),
JdbcSourceOptions.SPLIT_KEY_EVEN_DISTRIBUTION_FACTOR_LOWER_BOUND
Expand Down Expand Up @@ -148,8 +148,8 @@ public void testEnableParallelReadSource() {
3000,
100,
Duration.ofSeconds(45),
JdbcSourceOptions.CONNECTION_POOL_SIZE.defaultValue(),
JdbcSourceOptions.CONNECT_MAX_RETRIES.defaultValue(),
JdbcSourceOptions.CONNECTION_POOL_SIZE.defaultValue(),
40.5d,
0.01d,
"testCol",
Expand Down Expand Up @@ -187,8 +187,8 @@ public void testOptionalProperties() {
SourceOptions.CHUNK_META_GROUP_SIZE.defaultValue(),
SourceOptions.SCAN_SNAPSHOT_FETCH_SIZE.defaultValue(),
JdbcSourceOptions.CONNECT_TIMEOUT.defaultValue(),
JdbcSourceOptions.CONNECTION_POOL_SIZE.defaultValue(),
JdbcSourceOptions.CONNECT_MAX_RETRIES.defaultValue(),
JdbcSourceOptions.CONNECTION_POOL_SIZE.defaultValue(),
JdbcSourceOptions.SPLIT_KEY_EVEN_DISTRIBUTION_FACTOR_UPPER_BOUND
.defaultValue(),
JdbcSourceOptions.SPLIT_KEY_EVEN_DISTRIBUTION_FACTOR_LOWER_BOUND
Expand Down

0 comments on commit 08d6b81

Please sign in to comment.