You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "TFGSUMIT (via GitHub)" <gi...@apache.org> on 2026/07/28 11:15:33 UTC
[PR] Solution (#11007): [Umbrella][Improve] Migrate Connector/Transform Validation to Dec [seatunnel]
TFGSUMIT opened a new pull request, #11586:
URL: https://github.com/apache/seatunnel/pull/11586
This PR updates the OptionRule builder to use declarative constraints, improving the code's maintainability and readability. The new implementation uses a builder pattern to create OptionRule instances with declarative constraints, making it easier to add or remove validation rules.
Changes:
* Updated the OptionRule builder to use declarative constraints
* Added new declarative constraints for numeric range, required cross-field comparison, optional cross-field comparison, and conditional value check
* Updated the OptionRule class to use the new declarative constraints
Testing:
* Added a test class to test the OptionRule builder with declarative constraints
* Tested with various scenarios to ensure correctness
Please review and test this PR to ensure that it meets the requirements and does not introduce any regressions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Solution (#11007): [Umbrella][Improve] Migrate Connector/Transform Validation to Dec [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586#issuecomment-5125138570
Thanks for adding the concrete workflow-enablement guidance and check link. +1 that CI needs to be enabled and rerun. One important clarification for the contributor: CI is not the only blocker on the unchanged current head. The implementation is still under the non-module top-level `path/` directory, and those files are not valid compiled SeaTunnel Java sources, so the source changes need to be reworked in the real module before a new full review. Once a new commit is pushed, I will re-review the complete updated diff.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Solution (#11007): [Umbrella][Improve] Migrate Connector/Transform Validation to Dec [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586#issuecomment-5363666548
Thanks @SEZ9 for consolidating this into a concrete checklist — that's genuinely helpful and I think it gives @TFGSUMIT the clearest picture yet of what's needed.
From Daniel's side: I agree with all four items above, and nothing new needs adding to the list. The head is still `cb3017b6` (unchanged since my last note), so there's nothing further to re-review right now — I'll hold off on a fresh full review until an updated commit lands.
@TFGSUMIT, to be very concrete about sequencing: item 1 and 2 (real `seatunnel-api` module, valid Java syntax) have to come first, since the code won't compile otherwise — CI (item 4) can't tell you anything useful until then. Item 3 (the `Builder.required(...)` reassignment bug) is worth fixing in the same pass since it's a one-line-scope change once the code is in the right place. Once you push, tag either of us and we'll do a complete re-review of the new diff. No rush — take the time you need, and ask here if any of the four points aren't clear.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][Connector-V2] Validate MaxCompute sink retries with OptionRule [seatunnel]
Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586#issuecomment-6537991888
Thanks @PHJ2000 for coordinating the overlapping factory and documentation edits. The endpoint-only change is now #13069, and I have reviewed its current head separately. Keep endpoint validation and the retry behavior here independently reviewable; if either lands first, resolve any resulting overlap in the other change and rerun its checks. My source conclusion on this unchanged retry PR remains clear, with current Build green. To clarify my earlier wording, a comment saying “approval” does not itself grant the effective approval required by branch protection.
Checked 2026-10-31T02:47:13.259601+00:00; unchanged head `f93b15f722573f82bab4df0346c2e3af2212c9a2`. [Signal pull request update](https://github.com/apache/seatunnel/actions/runs/40198895235/job/121480851344)=`SUCCESS`; [Build](https://github.com/apache/seatunnel/runs/121486058277)=`SUCCESS`.
This is a discussion/CI clarification, not another full source review or an effective maintainer approval. Daniel has READ repository permission; a write-capable maintainer owns required approval/dismissal.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Solution (#11007): [Umbrella][Improve] Migrate Connector/Transform Validation to Dec [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586#issuecomment-5141522905
Thanks @SEZ9 for the careful follow-up. I agree with this clarification.
From Daniel's side, I do not see a useful full re-review to start on the unchanged head yet: enabling CI is necessary, but the current source layout/syntax issues still need to be fixed first. Once the contributor pushes an updated commit in the real SeaTunnel module layout, I will re-review the complete diff against that new head.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][Connector-V2] Validate MaxCompute sink retries with OptionRule [seatunnel]
Posted by "PHJ2000 (via GitHub)" <gi...@apache.org>.
PHJ2000 commented on PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586#issuecomment-6516447179
Hi @TFGSUMIT, following the scope discussion in #11007 (https://github.com/apache/seatunnel/issues/11007#issuecomment-6514046323), I’m planning a separate change for MaxCompute Sink `endpoint` validation.
The change will add `Conditions.notBlank(ENDPOINT)` to the existing required sink option, with factory tests for valid, missing, empty, whitespace-only and padded nonblank values, matching EN/ZH documentation, and configuration-check coverage in the existing MaxCompute E2E suite. Nonblank values, retry settings and other runtime behavior will remain unchanged.
Since our changes touch the same sink factory, factory tests and documentation, I’ll keep my diff focused on the endpoint rule and rebase if your PR lands first. I haven’t changed code or run tests for this slice yet.
<!-- contribution-flow:apache--seatunnel--11007:maxcompute-sink-overlap-notice-v1 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Solution (#11007): [Umbrella][Improve] Migrate Connector/Transform Validation to Dec [seatunnel]
Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586#issuecomment-5358315984
Thanks @DanielLeens for keeping the status of this one clear — I fully agree with the summary above, and nothing has changed since the previous review pass.
To the contributor: the current head (`cb3017b6`) is still blocked on the same items raised earlier, so to avoid this getting lost, here are the concrete remaining asks before we can do a meaningful re-review:
1. **Move the code into the real module** — the top-level `path/` directory is not a valid source root. The `OptionRule`/`Conditions` changes need to live under the existing `seatunnel-api` module with proper package declarations and imports (`Map`, `List`, `HashMap` are currently missing).
2. **Fix the Java syntax** — the files still use Python-style `#` comments, which won't compile.
3. **Fix the validation logic bugs** — in particular, `Builder.required(...)` reassigns `rule = new OptionRule()` on each call, which drops previously added conditions.
4. **Enable CI in your fork** per @davidzollo's guidance above — note this is necessary but not sufficient, since CI will fail regardless until the head compiles.
No need to reply point by point — once you push an updated commit with the code reworked under `seatunnel-api`, we'll re-review the full diff against the new head. Feel free to ask here if anything is unclear, and thanks again for contributing to Apache SeaTunnel!
<!-- streview-comment:395 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Solution (#11007): [Umbrella][Improve] Migrate Connector/Transform Validation to Dec [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586#issuecomment-5149759832
Thanks for your contribution for Apache SeaTunnel.
To facilitate focused communication among contributors, we’ve created a brand-new dedicated #contributors channel in official Slack workspace.
Slack workspace link: https://s.apache.org/seatunnel-slack
This channel is designed for technical discussions, feature design brainstorming, roadmap sync and direct communication with project core Contributors. Everyone who contributes code, docs, test cases or community ideas is warmly invited to join, share thoughts and collaborate together under The Apache Way. Welcome to join us😄
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Solution (#11007): [Umbrella][Improve] Migrate Connector/Transform Validation to Dec [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586#issuecomment-5149758270
Thanks for your contribution for Apache SeaTunnel.
To facilitate focused communication among contributors, we’ve created a brand-new dedicated #contributors channel in official Slack workspace.
Slack workspace link: https://s.apache.org/seatunnel-slack
This channel is designed for technical discussions, feature design brainstorming, roadmap sync and direct communication with project core Contributors. Everyone who contributes code, docs, test cases or community ideas is warmly invited to join, share thoughts and collaborate together under The Apache Way. Welcome to join us😄
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Solution (#11007): [Umbrella][Improve] Migrate Connector/Transform Validation to Dec [seatunnel]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586#issuecomment-5192168767
Thanks for your contribution! This is a solid addition to the project, and your attention to detail really shows. Contributors like you are what keep this community moving forward. Feel free to keep the PRs coming — we're always glad to have you here!
Please ignore the following message if you have joined in the Slack~
```
To facilitate focused communication among contributors, we’ve created a brand-new dedicated #contributors channel in official Slack workspace.
Slack workspace link: https://s.apache.org/seatunnel-slack
This channel is designed for technical discussions, feature design brainstorming, roadmap sync and direct communication with project core Contributors. Everyone who contributes code, docs, test cases or community ideas is warmly invited to join, share thoughts and collaborate together under The Apache Way. Welcome to join 😄
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Solution (#11007): [Umbrella][Improve] Migrate Connector/Transform Validation to Dec [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586#issuecomment-5350151614
Thanks @davidzollo for the warm welcome and the Slack invite — much appreciated, and welcome to the community channel!
@TFGSUMIT, just to make sure this doesn't get lost among the friendly notes above: the current head (`cb3017b6`) is still blocked on the source-side issues raised in the two `CHANGES_REQUESTED` reviews earlier in this thread — the code under `path/` isn't valid, compilable Java yet, the validation logic has several correctness bugs (e.g. required-field checks that never actually enforce presence, a builder that drops previously added conditions, a couple of comparisons against the wrong operand), and no real connector/transform factory is migrated yet, which is the actual goal of #11007. No need to respond point by point — whenever you're ready, please rework the implementation under the real `seatunnel-api` module and push an updated commit, and we'll do a full re-review of the new diff at that point. Take your time, and feel free to ask here if anything in the review is unclear!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][Connector-V2] Validate MaxCompute sink retries with OptionRule [seatunnel]
Posted by "davidzollo (via GitHub) via commits" <co...@seatunnel.apache.org>.
davidzollo merged PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Solution (#11007): [Umbrella][Improve] Migrate Connector/Transform Validation to Dec [seatunnel]
Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586#issuecomment-5140456948
Thanks @davidzollo for the CI guidance and @DanielLeens for keeping the review state clear — agreed on both points.
To the contributor: please note that enabling CI in your fork is necessary but won't be sufficient here. The current head `cb3017b61fe1` cannot compile as-is, so CI would fail regardless. Concretely, before we can do a meaningful re-review, the following needs to be addressed:
1. **Move the code into a real module** — the top-level `path/` directory is not a valid source root. The `OptionRule`/`Conditions` changes belong under the existing `seatunnel-api` module with proper package declarations and imports (`Map`, `List`, `HashMap` are all missing).
2. **Fix the Java syntax** — the files currently use Python-style `#` comments, which won't compile.
3. **Fix the validation logic bugs** — `Builder.required(...)` reassigns `rule = new OptionRule()` on each call and drops prior conditions; `GreaterThanCondition` compares a value against itself due to parameter shadowing; `Required/OptionalCondition` never look up the field name, so required options are effectively never validated; `ConditionalCondition` compares the config value to the field-name string.
4. **Clarify the `Condition.check` contract** — it's currently inconsistent between scalar and `Map` inputs with unchecked casts.
5. **Move the test** — the JUnit 4 test under `src/main` should be a JUnit 5 test under `src/test`, matching the project's conventions.
6. **Align with the migration goal** — #11007 asks for migrating connectors/transforms to declarative validation; introducing a parallel string-keyed `OptionRule` that shadows the existing typed one needs discussion first. Ideally this builds on (or extends) the existing typed API rather than duplicating it, and demonstrates the approach on at least one real connector.
Once a new commit is pushed addressing these, we'll re-review the full diff against the new head. Happy to help if you hit any issues along the way.
<!-- streview-comment:12 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Solution (#11007): [Umbrella][Improve] Migrate Connector/Transform Validation to Dec [seatunnel]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586#issuecomment-5120223948
Good job.
Thanks a lot for your valuable contribution to Apache SeaTunnel!
To pass the automated CI checks for this PR, could you please enable CI workflows in your forked repository first? You can refer to the check run link below as a reference for the required CI configuration https://github.com/apache/seatunnel/pull/11586/checks?check_run_id=90267652122
If you run into any trouble enabling CI or encounter related errors during the process, feel free to leave a comment here. Contributors are always ready to offer help~
<img width="2412" height="1472" alt="image" src="https://github.com/user-attachments/assets/6abd2ea1-da45-4d78-a81c-0158f2d7a851" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Solution (#11007): [Umbrella][Improve] Migrate Connector/Transform Validation to Dec [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11586:
URL: https://github.com/apache/seatunnel/pull/11586#issuecomment-5129180682
Thanks @SEZ9 for the fresh review. I saw the new `CHANGES_REQUESTED` review on the unchanged head and agree that the source-side review is still open.
From Daniel's side, I am not starting a separate full re-review in this no-new-commit pass; the next useful step is for the contributor to address the latest review items, then push an updated commit so we can re-review the full diff once against the new head.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org