You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "TianHengZhuang (via GitHub)" <gi...@apache.org> on 2026/09/20 05:32:03 UTC

[PR] [Improve][Connector-V2][Fake] Declarative optionRule value constraints for fake source [seatunnel]

TianHengZhuang opened a new pull request, #12404:
URL: https://github.com/apache/seatunnel/pull/12404

   ### Purpose of the pull request
   
   #11007 - migrate connector-fake source option validation to declarative OptionRule value constraints.
   
   ### Change log
   
   - Keep exclusive schema / tables_configs
   - row.num and split.num must be > 0
   - map.size, array.size, bytes.length, string.length, split.read-interval >= 0
   - vector.dimension and binary.vector.dimension > 0
   - Cross-field min <= max when both are set (tinyint/smallint/int/bigint/float/double/vector float)
   - Keep existing TEMPLATE-mode conditionals
   - FakeConfig runtime checks left in place for now
   
   ### Check list
   
   - [x] Tests added in FakeFactoryTest for exclusive rules, numeric bounds, cross-field min/max, and template mode
   - [ ] Local mvn not run on this machine (no JDK); CI after workflow approval
   - [x] Related to #11007


-- 
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][Fake] Declarative optionRule value constraints for fake source [seatunnel]

Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx commented on PR #12404:
URL: https://github.com/apache/seatunnel/pull/12404#issuecomment-5749940895

   Thank you for your contribution.
   please enable CI: https://github.com/apache/seatunnel/pull/12404/checks?check_run_id=106028336158


-- 
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][Fake] Declarative optionRule value constraints for fake source [seatunnel]

Posted by "TianHengZhuang (via GitHub)" <gi...@apache.org>.
TianHengZhuang commented on PR #12404:
URL: https://github.com/apache/seatunnel/pull/12404#issuecomment-5809839123

   Hey @DanielLeens, thanks for the detailed follow-up! Got it - two quick fixes left:\n\n1. incompatible-changes.md - will add a dev entry for connector-fake covering the newly rejected values (split.num <= 0, negative sizes, vector dimensions <= 0, inverted min/max pairs). Will also note that row.num = 0 stays valid.\n2. Spotless - will run spotless:apply and push, noted the exact hunks you flagged.\n\nShould be a single clean commit, will push shortly!


-- 
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][Fake] Declarative optionRule value constraints for fake source [seatunnel]

Posted by "TianHengZhuang (via GitHub)" <gi...@apache.org>.
TianHengZhuang commented on PR #12404:
URL: https://github.com/apache/seatunnel/pull/12404#issuecomment-5859947585

   Both blockers from your last review are now closed on `52cf8a70`:
   
   1. `Run / Code style` is fully green - I ran `spotless:apply` locally and committed the exact output, so the trailing hunks are gone.
   2. The corrupted Chinese line is rewritten cleanly (whole paragraph replaced, not byte-patched), and the incompatible-changes entries (en + zh) now list the complete set instead of only `split.num` / vector dimensions: `split.num` / `vector.dimension` / `binary.vector.dimension` (> 0); `row.num` / `split.read-interval` / `map.size` / `array.size` / `bytes.length` / `string.length` (>= 0); plus the seven `min <= max` pairs.
   
   `unit-test` also ran for the first time on this PR - 556 tests, 1 error: `SavePointTest.testSavePointButJobGoingToFail` (ConditionTimeout in `seatunnel-engine-server`, unrelated to this diff). `updated-modules-integration-test-part-1 (8, ubuntu)` failed on a Maven artifact download (`kr.motd.maven:os-maven-plugin`), also unrelated. Both look like infrastructure/flakiness rather than code, so I've re-run the failed jobs.
   
   Thanks again for the detailed review.


-- 
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][Fake] Declarative optionRule value constraints for fake source [seatunnel]

Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx merged PR #12404:
URL: https://github.com/apache/seatunnel/pull/12404


-- 
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][Fake] Declarative optionRule value constraints for fake source [seatunnel]

Posted by "TianHengZhuang (via GitHub)" <gi...@apache.org>.
TianHengZhuang commented on PR #12404:
URL: https://github.com/apache/seatunnel/pull/12404#issuecomment-5754602355

   pushed updates for the review
   
   - exclusive test now uses a List for tables_configs
   - row.num allows 0 (empty source stays valid); split.num still must be > 0
   - tests cover min==max, one-sided min/max, all seven pairs, and template mode with/without template
   - line lengths tightened for spotless
   
   Enabling Actions on the fork next so CI can actually run.


-- 
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][Fake] Declarative optionRule value constraints for fake source [seatunnel]

Posted by "TianHengZhuang (via GitHub)" <gi...@apache.org>.
TianHengZhuang commented on PR #12404:
URL: https://github.com/apache/seatunnel/pull/12404#issuecomment-5809780465

   Thank you for the detailed re-review @DanielLeens! Understood on both remaining issues. Here's my plan:\n\n**Issue 1 (Medium) - incompatible-changes.md:** I'll add a ## dev entry under connector-fake listing the newly rejected values (split.num <= 0, negative  ow.num/sizes, ector.dimension <= 0, inary.vector.dimension <= 0, inverted min/max pairs). Will also clarify that  ow.num = 0 stays valid.\n\n**Issue 2 (Medium) - Spotless:** Will run spotless:apply and push the formatted result. Noted the exact hunks you flagged.\n\nWill address both and push in one commit. Thanks again for the thorough reviews!


-- 
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