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

[PR] [Fix][Transform-V2] Preserve vector input buffers during SQL evaluation [seatunnel]

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

   <!-- PR title: [Fix][Transform-V2] Preserve vector input buffers during SQL evaluation -->
   
   ### Purpose of this pull request
   
   Closes #12334.
   
   Read an ordered duplicate in the SQL vector conversion path instead of consuming the caller's ByteBuffer. Keep the shared VectorUtils consuming-conversion contract unchanged.
   
   Extend the existing vector/SQL tests and E2E fixture for repeated reads, same-buffer operands, downstream reuse, buffer variants and failure paths. Update EN/ZH documentation.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. Reusing one vector in multiple SQL expressions no longer advances its input buffer or causes a subsequent read to fail with BufferUnderflowException. Position, limit, mark, order and contents are preserved, including when decoding fails.
   
   No API, configuration, schema or state-format changes. This adds a buffer view, not a full byte-buffer copy. It does not change vector arithmetic or redefine malformed-buffer dimensions. Reproduced on current dev; released versions were not separately tested.
   
   ### How was this patch tested?
   
   - Before the fix, all 13 added regression invocations failed on both Java 8 and Java 11; the 19 existing cases passed.
   - Full transform reactor on Java 8 and Java 11: 1,170 transform tests passed per JDK, with no failures, errors or skips.
   - Combined affected-suite validation with the arithmetic fix: 651 transform tests and five VectorUtils tests passed per JDK.
   - Targeted Java 11 Zeta execution: the original transform JAR failed with buffer underflow; the combined fixed JAR passed. This used an earlier snapshot distribution with the new transform JAR overlaid, not the full Flink/Spark matrix.
   - Root Spotless and Java 11 root verification passed on the combined integration tree, including distribution packaging.
   
   ```sh
   ./mvnw -B -pl seatunnel-transforms-v2 -am package -Dskip.ui=true
   ./mvnw spotless:apply
   ./mvnw -q -DskipTests verify
   ```
   
   ### Check list
   
   * [x] New Jar binary package / [license notice](https://github.com/apache/seatunnel/blob/dev/docs/en/developer/new-license.md): not applicable; no dependency added.
   * [x] User-facing documentation updated in EN/ZH.
   * [x] Incompatible changes reviewed: no configuration, API, schema or state migration; the corrected read-side effect is documented.
   * [x] Connector checklist (plugin mapping, distribution POM, CI labels, connector E2E and plugin_config): not applicable; no connector code changed. The existing transform E2E fixture was extended.
   


-- 
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][Transform-V2] Preserve vector input buffers during SQL evaluation [seatunnel]

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

   Thanks for the update, @goutamadwant! I checked the PR and the head commit is still `63c14e7a` - the same commit I already reviewed and approved, so from my side that approval still stands and I don't need to re-review the vector-buffer fix itself.
   
   I don't see a new commit reflecting the dev sync (NebulaGraph/RocketMQ fixes) on the PR yet, so I can't independently confirm that merge landed cleanly or that CI ran against it. Once the updated branch is actually pushed (i.e. the head SHA changes) and a fresh CI run completes, I'll take another look and confirm the Build check is green before we move to merge. No action needed from me until then.
   


-- 
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][Transform-V2] Preserve vector input buffers during SQL evaluation [seatunnel]

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


-- 
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][Transform-V2] Preserve vector input buffers during SQL evaluation [seatunnel]

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

   Following up on my own note above, since the condition I was waiting for has now happened: the branch was pushed and the head SHA changed (`63c14e7a` -> `fe946b0f893334f`, via `Merge remote-tracking branch 'upstream/dev'`).
   
   I diffed `63c14e7a...fe946b0f893334f` directly: it's 44 files, all outside this PR's own scope (other connectors' docs, JDBC/CDC/Redis/SMB/Fluss files, dist license files, etc.) — nothing under `seatunnel-transforms-v2` or the vector/SQL docs this PR touches. So the merge landed cleanly with no conflicts silently resolved into the vector-buffer fix itself, and my original approval (on `03e7a6fa`, the commit that actually contains the fix) still stands unchanged.
   
   CI on this new head is still running as I write this (`Code style` in progress, `changes` queued, `Dead links`/`License header` green so far) — I'll take one more look once it finishes to confirm the `Build` check is green before this is ready to merge. No action needed from you in the meantime.
   


-- 
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][Transform-V2] Preserve vector input buffers during SQL evaluation [seatunnel]

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

   Updated the branch with dev's merged NebulaGraph/RocketMQ fixes. The vector-input preservation patch is unchanged, and all 32 focused vector/SQL tests pass on Java 11. Fresh CI is queued.


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