Skip to content

Minor optimization to not derive schema when using existing schema #1327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

rayokota
Copy link
Member

@rayokota rayokota commented Nov 1, 2024

No description provided.

@rayokota rayokota requested review from a team as code owners November 1, 2024 19:15
@confluent-cla-assistant
Copy link

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

info = schemaregistry.SchemaInfo{
Schema: string(raw),
SchemaType: "JSON",
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This just puts the previous code in an if block

if err != nil {
return nil, err
}
info = *schemaInfo
Copy link
Member Author

Choose a reason for hiding this comment

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

This just puts the previous code in an if block

Copy link

@zhaochun-ma zhaochun-ma left a comment

Choose a reason for hiding this comment

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

would be great to add new test cases

@rayokota rayokota merged commit 0571ae8 into master Nov 1, 2024
2 checks passed
@rayokota rayokota deleted the opt-lookup branch November 1, 2024 21:15
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.

2 participants