You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "corgy-w (via GitHub)" <gi...@apache.org> on 2026/04/15 12:35:20 UTC
[PR] [Fix][Connector-V2][JDBC] Use Oracle-typed null binding for sparse null rows [seatunnel]
corgy-w opened a new pull request, #10768:
URL: https://github.com/apache/seatunnel/pull/10768
## What changed
- add a null-binding hook in `AbstractJdbcRowConverter`
- override null binding in `OracleJdbcRowConverter` so Oracle columns use typed `setNull(...)` instead of untyped `setObject(..., null)`
- keep the default behavior for other JDBC dialects unchanged
- preserve the existing `dev` branch Oracle string binding behavior, including `NCLOB` handling
## Why
When Oracle rows contain many sparse `NULL` values, writes can be much slower than equivalent rows without `NULL` values. The previous JDBC path bound nulls with `statement.setObject(index, null)`, which does not preserve Oracle column type information and can push the Oracle driver onto a slower bind path.
This change keeps the abstract JDBC layer generic and moves the Oracle-specific behavior into the Oracle row converter only.
## Impact
- Oracle sink writes should be closer to the non-null path when rows contain many nulls
- non-Oracle JDBC dialects keep the original behavior
- Oracle LOB and character-like types now bind nulls with explicit JDBC types
- `TIMESTAMP_TZ` on `dev` also gets typed null binding
## Validation
- reviewed the diff against `origin/dev`
- attempted `mvn -pl seatunnel-connectors-v2/connector-jdbc -DskipTests -Dcheckstyle.skip=true -Dspotless.skip=true -DskipITs compile`
- local validation was blocked by snapshot dependency resolution failures from the configured Maven mirror `http://192.168.0.129:8081/repository/maven-public/` returning `502 Bad Gateway`
--
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] [Fix][Connector-V2][JDBC] Use Oracle-typed null binding for sparse null rows [seatunnel]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo merged PR #10768:
URL: https://github.com/apache/seatunnel/pull/10768
--
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