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/17 06:19:52 UTC

[PR] [Fix][Transform-V2] Rebind Replace fields on schema refresh [seatunnel]

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

   ### Purpose of this pull request
   
   Fixes #12363.
   
   Rebuild Replace's configured field indexes in the existing schema-refresh hook. Constructor-time indexes otherwise survive reordered schemas and can apply replacements to the wrong columns after schema events, restoration or input handoff.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. Replace now follows configured field names after supported schema-layout changes. For example, restoring `id,name,title` as `title,id,name` no longer leaves title unchanged while processing the old offsets.
   
   Missing configured targets fail with the existing validation error during schema refresh, rather than processing rows with stale bindings. This failure is outside row-level skip handling. No options, public APIs or checkpoint formats change. Existing literal/regex behavior, null handling and input-row isolation are preserved. EN/ZH documentation explains the corrected behavior and target-name requirement.
   
   This does not add general schema-evolution support to every engine or change non-string conversion/chained-rename behavior. Field lookup is performed on schema refresh, not per row.
   
   ### How was this patch tested?
   
   - Baseline restore/handoff regressions failed before the fix on Java 8 and Java 11. Java 11 executed the compiled baseline with installed prerequisite snapshots; it was not a fresh Java 11 baseline reactor.
   - Extended ReplaceTransformTest for restoration, input handoff, add/drop/reorder, missing targets, nulls, row metadata, input preservation, multi-table routing and ALL_MATCH chains.
   - Full transform suites passed on Java 8u172 and Java 11.0.19: 1,165 tests each, zero failures/errors/skips.
   - Added `MysqlCDCWithSchemaChangeIT#testReplaceFieldBindingAfterSchemaChangeAndRestore`: real MySQL 8.0.43 snapshot, leading-column addition, savepoint, stopped-source DML and restoration passed, including untouched-field assertions. Engine Java 8u342; Java 11 host driver. Runtime artifacts were freshly built and hash-checked; host harness dependencies included installed snapshots. This is fixed-runtime evidence, not a live unchanged/fixed pair or engine-Java-11 recovery test.
   - Spotless passed. A combined integration tree containing this fix and the separate exact-array-extrema fix passed the 310-module Java 11 `verify -DskipTests -Dskip.ui=true` build. Repository-wide test execution is not claimed.
   
   Focused test command, with the selected JDK in JAVA_HOME:
   
   ```sh
   ./mvnw -B -pl seatunnel-transforms-v2 -am package \
     '-Dtest=ReplaceTransformTest,ReplaceTransformFactoryTest,AbstractMultiCatalogTransformTest,TransformChainLiveAlterTest,ProductionPipelineSchemaChangeTest,ChainTimestampPreservationTest' \
     -Dsurefire.failIfNoSpecifiedTests=false -Dskip.ui=true
   ```
   
   ### Check list
   
   - [x] Regression coverage added to existing unit and MySQL CDC E2E tests.
   - [x] EN/ZH Replace documentation updated.
   - [x] EN/ZH incompatible-change notes updated.
   - No new JAR dependencies or connector registration changes.
   


-- 
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] Rebind Replace fields on schema refresh [seatunnel]

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

   Thanks for the contribution. The merge-gate fact cited in my previous conclusion has changed: GitHub now reports a real merge conflict. This follow-up corrects that gate on the unchanged reviewed head; it is not another full source review or a sync request based only on being behind.
   
   Gate snapshot (2026-10-28T15:56:02+00:00), head `9b0d8185a6938843ceed5cc95f9253deeb92f22b`: [Build](https://github.com/apache/seatunnel/runs/121073008128) is `SUCCESS`.
   
   CI is green, but that does not remove the separate conflict gate below. My [previous source conclusion](https://github.com/apache/seatunnel/pull/12365#pullrequestreview-5642789778) and any independent source requests remain as recorded; no new effective approval or dismissal is performed by this clarification.
   
   Separately, GitHub reports merge conflicts with `dev`. Please sync the latest base and resolve the conflicts first; the resulting new head needs checks and re-review. This conflict gate is independent of CI and existing source findings.
   


-- 
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] Rebind Replace fields on schema refresh [seatunnel]

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

   Merged dev and resolved the EN/ZH migration-note conflict, preserving both entries. The schema-rebinding implementation is unchanged by the conflict resolution. Parent-content preservation was checked; this is not a new full-reactor test result.
   
   Pushed in bc4a2b4d343c. CI for the new head is pending; the results above are scoped verification, not a green aggregate-build claim.


-- 
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] Rebind Replace fields on schema refresh [seatunnel]

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

   The CI fact cited in my previous review has changed: Build for the current unchanged head is now passing. CI was previously the only remaining blocker; CI is now passing, so my technical conclusion changes to approve. I do not see a new source-side blocker from Daniel's review. This branch is behind the latest dev base, which I have recorded as merge metadata only; because the current head CI is green, that fact alone does not call for an additional source change. I have read-only review controls, so this COMMENT does not change GitHub's displayed review decision; a write-capable maintainer must perform any final approval or dismissal action.


-- 
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] Rebind Replace fields on schema refresh [seatunnel]

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

   Synced dev to include the merged NebulaGraph/RocketMQ CI fixes. The Replace patch is unchanged, and all 27 focused Replace/factory 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


Re: [PR] [Fix][Transform-V2] Rebind Replace fields on schema refresh [seatunnel]

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


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