Skip to content

Commit

Permalink
EDIT: removed comments that chunk key is restrcited to primary key fo…
Browse files Browse the repository at this point in the history
…r table with primary key
  • Loading branch information
Seung-Min Lee committed Jul 5, 2024
1 parent 09e65e1 commit 3ac230f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,5 @@ public class JdbcSourceOptions extends SourceOptions {
.noDefaultValue()
.withDescription(
"The chunk key of table snapshot, captured tables are split into multiple chunks by a chunk key when read the snapshot of table."
+ "By default, the chunk key is the first column of the primary key and the chunk key is the RowId in oracle."
+ "This column must be a column of the primary key.");
+ "By default, the chunk key is the first column of the primary key and the chunk key is the RowId in oracle.");
}
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ public class MySqlSourceOptions {
.noDefaultValue()
.withDescription(
"The chunk key of table snapshot, captured tables are split into multiple chunks by a chunk key when read the snapshot of table."
+ "By default, the chunk key is the first column of the primary key."
+ "This column must be a column of the primary key.");
+ "By default, the chunk key is the first column of the primary key.");

@Experimental
public static final ConfigOption<Boolean> SCAN_INCREMENTAL_CLOSE_IDLE_READER_ENABLED =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ public static RowType getChunkKeyColumnType(Column chunkKeyColumn) {

/**
* Get the chunk key column. This column could be set by `chunkKeyColumn`. If the table doesn't
* have primary keys, `chunkKeyColumn` must be set. If the table has primary keys,
* `chunkKeyColumn` must be a column of them or else null. When the parameter `chunkKeyColumn`
* have primary keys, `chunkKeyColumn` must be set. When the parameter `chunkKeyColumn`
* is not set and the table has primary keys, return the first column of primary keys.
*/
public static Column getChunkKeyColumn(Table table, Map<ObjectPath, String> chunkKeyColumns) {
Expand Down

0 comments on commit 3ac230f

Please sign in to comment.