You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "yigitcan-ozturk (via GitHub)" <gi...@apache.org> on 2026/09/11 14:37:23 UTC

[PR] [Improve][Connector-V2] Migrate BigQuery validation to declarative OptionRule [seatunnel]

yigitcan-ozturk opened a new pull request, #12272:
URL: https://github.com/apache/seatunnel/pull/12272

   ### Purpose of this pull request
   
   This PR migrates BigQuery sink configuration validation from imperative runtime checks to the declarative `OptionRule` / `Conditions` validation framework.
   
   It is part of #11007.
   
   ### Changes
   
   - Validate `write_mode` declaratively.
   - Restrict `write_mode` to supported values:
     - `batch`
     - `streaming`
   - Validate that `batch_size` is greater than `0`.
   - Validate required BigQuery identifiers as non-blank:
     - `project_id`
     - `dataset_id`
     - `table_id`
   - Remove redundant runtime `write_mode` validation from `BigQuerySink`.
   - Add unit tests for:
     - invalid `write_mode`
     - invalid `batch_size`
     - blank required identifiers
   
   ### Does this PR introduce any user-facing change?
   
   No.
   
   Valid existing BigQuery configurations are not affected.
   
   Invalid configurations are now rejected earlier during option validation instead of failing later during sink initialization.
   
   ### Testing
   
   Added unit test coverage in `BigQuerySinkFactoryTest` for the migrated declarative validation rules.
   
   ### Related issue
   
   #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] Migrate BigQuery validation to declarative OptionRule [seatunnel]

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


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