wayne-x-wang opened a new pull request, #24306:
URL: https://github.com/apache/kafka/pull/24306

   When `ReplaceField` transforms a `Struct`, it builds the output schema from 
the retained input fields but uses a global inverse rename map to copy their 
values. For example, with `exclude=a` and `renames=a:b`, the output field `b` 
receives the value of the excluded field `a`. If `a` is absent from the input 
schema, the lookup throws a `DataException`.
   
   Copy each retained input field directly to its forward-renamed output field 
and remove the inverse rename map. Regression tests verify that `b` keeps its 
original value when `a` is excluded, omitted by an include filter, or absent 
from the schema.
   
   [KAFKA-21207](https://issues.apache.org/jira/browse/KAFKA-21207)
   


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