Skip to content

Conversation

@corgy-w
Copy link
Contributor

@corgy-w corgy-w commented Jun 12, 2025

Purpose of this pull request

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

hailin0
hailin0 previously approved these changes Jun 13, 2025
Copy link
Contributor

Copilot AI left a 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-scan key.
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-scan option 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-sca key to maintain backward compatibility for existing user configurations.
Options.key("batch-size-per-scan")

Copy link
Member

@Hisoka-X Hisoka-X left a 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.

@nielifeng
Copy link
Contributor

@corgy-w

@hailin0 hailin0 merged commit 6cf2581 into apache:dev Jun 16, 2025
5 checks passed
chncaesar pushed a commit to chncaesar/seatunnel that referenced this pull request Jun 30, 2025
dybyte pushed a commit to dybyte/seatunnel that referenced this pull request Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants