You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "ZYZ666-RGB (via GitHub)" <gi...@apache.org> on 2026/09/09 06:06:30 UTC
[PR] [Improve][Connector-V2] Validate nonblank Lance sink options [seatunnel]
ZYZ666-RGB opened a new pull request, #12222:
URL: https://github.com/apache/seatunnel/pull/12222
### Purpose of this pull request
Part of #11007 (claimed connector-lance Sink slice).
Add declarative notBlank validation for dataset_path and namespace_type, with regression tests and EN/ZH documentation.
### Does this PR introduce any user-facing change?
Explicit empty or whitespace-only values now fail factory validation. Omitted values still use /test.lance and dir. Nonblank values are preserved without trimming, and namespace_id remains optional with its empty-string default. No runtime or remote-service checks are added.
### How was this patch tested?
OpenJDK 17:
```bash
./mvnw spotless:apply
./mvnw -pl seatunnel-connectors-v2/connector-lance -am -Dtest=LanceFactoryTest -Dsurefire.failIfNoSpecifiedTests=false -DskipIT=true -Dskip.ui=true -Dlicense.skipAddThirdParty=true verify
git diff --check
```
All 21 cases pass. Before the fix, the 12 empty/whitespace cases failed and the other 9 passed. Tests cover spaces, tabs, CR/LF, mixed whitespace, surrounding spaces, individually/both omitted options, and optional namespace_id values. Tests use ConfigValidator without starting Lance.
### Check list
- [x] EN/ZH documentation updated.
- [x] Defaults and optional behavior preserved.
- [x] Regression tests added.
- No new dependencies.
--
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 nonblank Lance sink options [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12222:
URL: https://github.com/apache/seatunnel/pull/12222#issuecomment-5611960668
Thanks for confirming, @nzw921rx. CI is green (Build / labeler / Notify test workflow all SUCCESS) and I don't see anything outstanding on my side after tracing the `notBlank` condition through `OptionRule`/`ConditionEvaluators`. As noted in my review, my account here is comment-only, so this still needs a write-access maintainer to give the actual merge approval.
--
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 nonblank Lance sink options [seatunnel]
Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx merged PR #12222:
URL: https://github.com/apache/seatunnel/pull/12222
--
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 nonblank Lance sink options [seatunnel]
Posted by "mon268293903-creator (via GitHub) via commits" <co...@seatunnel.apache.org>.
mon268293903-creator commented on PR #12222:
URL: https://github.com/apache/seatunnel/pull/12222#issuecomment-7032790166
./mvnw spotless:apply
./mvnw -pl seatunnel-connectors-v2/connector-lance -am -Dtest=LanceFactoryTest -Dsurefire.failIfNoSpecifiedTests=false -DskipIT=true -Dskip.ui=true -Dlicense.skipAddThirdParty=true verify
git diff --check
--
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