-
Notifications
You must be signed in to change notification settings - Fork 23
Minor optimization to not derive schema when using existing schema #140
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
Conversation
|
🎉 All Contributor License Agreements have been signed. Ready to merge. |
| schema = { | ||
| schemaType: 'AVRO', | ||
| schema: JSON.stringify(avroSchema), | ||
| } |
There was a problem hiding this comment.
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
| schema = { | ||
| schemaType: 'JSON', | ||
| schema: JSON.stringify(jsonSchema), | ||
| } |
There was a problem hiding this comment.
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
| this.config().useLatestWithMetadata == null) { | ||
| const fileDesc = messageDesc.file | ||
| schema = await this.getSchemaInfo(fileDesc) | ||
| } |
There was a problem hiding this comment.
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
zhaochun-ma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. would be great to add new test cases
48c367b to
00e1048
Compare
No description provided.