DanielLeens commented on PR #11077:
URL: https://github.com/apache/seatunnel/pull/11077#issuecomment-5357869285

   我重新检查了当前 head `27da288` 的失败构建,首个确定性根因不是环境问题,而是 
`MultiTableSink#getDestinationKey(...)` 这里把 `SeaTunnelSink` 当成 raw type 使用,导致 
`getWriteCatalogTable().map(...)` 在编译期退化成 `Optional<Object>`,最终在 CI 里报出:
   
   - `seatunnel-api/.../MultiTableSink.java:[298,31] error: incompatible types: 
Object cannot be converted to String`
   
   我这边已经基于当前 PR head 准备了一个最小修复,并推到了 Daniel 的辅助分支,供你直接 review / cherry-pick:
   
   - branch: `DanielLeens:codex/fix-pr11077-destination-key-20260820`
   - commit: `f2a9c4ddb31ffd849faa12f13f0afb2a11baaacb`
   
   这个补丁只做了两件事:
   1. 把 raw `SeaTunnelSink` 改成带泛型的 `SeaTunnelSink<?, ?, ?, ?>`
   2. 去掉不必要的 `(CatalogTable)` 强转,直接从 `Optional<CatalogTable>` 提取 `tablePath`
   
   我在辅助分支上已经跑过最小本地校验:
   - `./mvnw spotless:apply -pl seatunnel-api -am -nsu`
   - `git diff --check`
   
   如果你方便的话,麻烦你 review 一下这个补丁,并把它同步到你的 PR 分支;同步后这次编译型失败就可以先消掉,我们再继续看后续 
gate。谢谢你一直推进这个修复。
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to