Skip to content

Conversation

@rayokota
Copy link
Member

@rayokota rayokota commented Nov 5, 2025

What

  • Handle evolution during field transformation
  • Also change Accept-Version to Confluent-Accept-Unknown-Properties

Checklist

  • [Y] Contains customer facing changes? Including API/behavior changes
  • [Y] Did you add sufficient unit test and/or integration test coverage for this PR?
    • If not, please explain why it is not required

References

JIRA:

Test & Review

Open questions / Follow-ups

Copilot AI review requested due to automatic review settings November 5, 2025 18:49
@rayokota rayokota requested review from a team as code owners November 5, 2025 18:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR handles schema evolution during field transformation by ensuring that field transformations use the original schema definition rather than an evolved schema. The key change enables proper transformation when fields are added or removed between schema versions.

  • Modifies REST service to accept unknown properties during schema evolution
  • Updates field transformation logic to reference original field schemas
  • Adds test coverage for field transformation with missing properties

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
test/Confluent.SchemaRegistry.Serdes.UnitTests/SerializeDeserialize.cs Adds test case for field transformation with missing properties to verify evolution handling
src/Confluent.SchemaRegistry/Rest/RestService.cs Replaces version header with unknown properties acceptance header
src/Confluent.SchemaRegistry.Serdes.Avro/AvroUtils.cs Updates transformation logic to use original field schemas and handle evolved records

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqube-confluent
Copy link

@rayokota rayokota merged commit 4414756 into master Nov 7, 2025
3 checks passed
@rayokota rayokota deleted the DGS-22077 branch November 7, 2025 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants