beansandroasters commented on PR #4641:
URL: https://github.com/apache/flink-cdc/pull/4641#issuecomment-7376137015
Thanks for catching this! I was able to reproduce it, and I have a fix
ready. If the type stays the same once the field ids are ignored, the update is
skipped, and anything else now fails with a clear
UnsupportedSchemaChangeEventException. Since FLINK-41773 touched the same
method, I'll also rebase this PR onto the latest master.
Before I push, there are two things I'd love your opinion on.
While looking into this, I noticed that Iceberg 1.10.1 accepts
updateColumn("col.element", ...) and makeColumnOptional("col.element"), and I
tried both locally. So promoting the element type (say ARRAY<INT> to
ARRAY<BIGINT>) and relaxing element nullability could actually be supported.
Would you like me to include that in this PR, or keep this one focused on "skip
if unchanged, reject otherwise" and handle it in a follow-up?
The other one is a small behavior change. To keep the exception type intact,
applyAlterColumnType no longer wraps SchemaEvolveException again. As a result,
with TRY_EVOLVE an unsupported ARRAY change gets skipped instead of failing the
job. Does that sound reasonable to you?
Thanks again for taking the time to review!
--
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]