cloudstorage: make all DateSeparator fields use the enum instead of string - #6078
Conversation
…tring Assisted-by: codex:gpt-5.6-sol
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change replaces string date separators with the typed ChangesTyped date separator configuration
Cloud storage typed path handling
Consumer and sink integration
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change standardizes DateSeparator handling so equivalent casing is accepted consistently; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description includes the required issue reference, change summary, test selections, compatibility and documentation answers, and release note. It is sufficiently complete, although the checked manual-test item does not include detailed steps in the description. Full details: Linked Issues checkExplanation The PR updates DateSeparator fields, parsing, serialization, and comparisons to use the typed enum. Case-insensitive unmarshaling and the provided tests address issue Full details: Out of Scope Changes checkExplanation Most changes support the DateSeparator objective, but KafkaConfig.MaskSensitiveData changes and the related CloneWithMaskedSensitiveData test add sensitive-data masking behavior unrelated to issue
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Please add a manual test 🙏🏻 |
|
Manual test (not integration test yes?): make cdc
tiup playground-ng v8.5.7 --db 1 --kv 1 --pd 1 --tiflash 0 --ticdc 1 --ticdc.binpath ./bin/cdc --ticdc.config ./ticdc-newarch.toml --without-monitor
./bin/cdc cli changefeed create -c test5854 --sink-uri 's3://test5854/?endpoint=http://127.0.0.1:9000&protocol=canal-json&access-key=minioadmin&secret-access-key=minioadmin' --config ./test5854.toml
mysql -u root -h 127.0.0.1 -P 4000 test
# create table a (a bigint primary key);
# insert into a values (4);The file is created at |
|
/check-issue-triage-complete |
[LGTM Timeline notifier]Timeline:
|
|
🤔 Needs |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 3AceShowHand, lidezhu, wk989898 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
In response to a cherrypick label: new pull request created to branch |
|
In response to a cherrypick label: new pull request created to branch |
|
@kennytm: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What problem does this PR solve?
Issue Number: close #6077
What is changed and how it works?
Changes all places that uses the DateSeparator expecting a string to the common enum
config.DateSeparatorso case-sensitivity no longer appears.Check List
Tests
Questions
Will it cause performance regression or break compatibility?
No
Do you need to update user documentation, design documentation or monitoring documentation?
No
Release note
Summary by CodeRabbit