-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Fix][Connector-V2] Correct typo in batch-size-per-scan option key #9434
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR corrects a typo in the TiDB CDC connector's configuration key by removing an unintended trailing space.
- Fixes the option key from
"batch-size-per-sca "to"batch-size-per-scan". - Updates the code constant accordingly.
Comments suppressed due to low confidence (3)
seatunnel-connectors-v2/connector-cdc/connector-cdc-tidb/src/main/java/org/apache/seatunnel/connectors/seatunnel/cdc/tidb/source/config/TiDBSourceOptions.java:65
- Please update any user documentation, example configs, and README files to reference the corrected
batch-size-per-scankey.
Options.key("batch-size-per-scan")
seatunnel-connectors-v2/connector-cdc/connector-cdc-tidb/src/main/java/org/apache/seatunnel/connectors/seatunnel/cdc/tidb/source/config/TiDBSourceOptions.java:65
- Add or update unit tests to verify that the
batch-size-per-scanoption is parsed correctly and defaults to 1000.
Options.key("batch-size-per-scan")
seatunnel-connectors-v2/connector-cdc/connector-cdc-tidb/src/main/java/org/apache/seatunnel/connectors/seatunnel/cdc/tidb/source/config/TiDBSourceOptions.java:65
- [nitpick] Consider adding a deprecated alias for the old
batch-size-per-scakey to maintain backward compatibility for existing user configurations.
Options.key("batch-size-per-scan")
Hisoka-X
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you update the doc too? I can't find this config key in the docs.
Purpose of this pull request
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
New License Guide