CokeLee777 opened a new pull request, #21525:
URL: https://github.com/apache/kafka/pull/21525

   **Description:**
   
   Fixes a latent bug in `SchemaUtil.copySchemaBasics(Schema)` where passing a 
MAP schema would result in a broken `SchemaBuilder` with null `keySchema` and 
`valueSchema`.
   
   Added a MAP type branch to correctly copy the key and value schemas, and 
included corresponding unit tests.
   
   **Note:**
   
   Currently, no callers within the codebase pass a MAP schema to this method, 
so there are no active runtime failures. However, since 
SchemaUtil#copySchemaBasics is a public utility method, this is a latent bug. 
This proactive fix ensures that if any future transforms or external connectors 
pass a MAP schema, it will be handled correctly.


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