confluent schema registry client to accept config and headers#9096
confluent schema registry client to accept config and headers#9096jadireddi wants to merge 5 commits intoapache:masterfrom
Conversation
|
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time or discuss it on the dev@druid.apache.org list. Thank you for your contributions. |
clintropolis
left a comment
There was a problem hiding this comment.
Thanks for the contribution, and very sorry for the delayed review. These changes seem reasonable to me. Would you mind fixing up the conflicts and updating the license.yaml to capture the updated dependency?
| <properties> | ||
| <schemarepo.version>0.1.3</schemarepo.version> | ||
| <confluent.version>3.0.1</confluent.version> | ||
| <confluent.version>5.2.0</confluent.version> |
There was a problem hiding this comment.
This is why CI is failing, could you update the entry for this in licenses.yaml. We use this file to ensure we keep our LICENSE information correct to make doing releases easier.
Based on the error message in CI, it looks like maybe the new version pulls in a few additional jars, so you might need to add a few additional entries for extensions/druid-avro-extensions (or exclude these jars if they aren't actually needed for operation of the extension)
| @JsonProperty("url") String url, | ||
| @JsonProperty("capacity") Integer capacity | ||
| @JsonProperty("capacity") Integer capacity, | ||
| @JsonProperty("urls") @Nullable List<String> urls, |
There was a problem hiding this comment.
I think it would probably make sense to mark the url parameter as @Deprecated in favor of the new urls parameter. If you agree, I think we should remove mention of url from the avro extension documentation.
Additionally, would you mind adding a JSON serialization/deserialization unit test for this class to make sure the new properties work as expected?
|
This pull request/issue is no longer marked as stale. |
3 similar comments
|
This pull request/issue is no longer marked as stale. |
|
This pull request/issue is no longer marked as stale. |
|
This pull request/issue is no longer marked as stale. |
|
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time or discuss it on the dev@druid.apache.org list. Thank you for your contributions. |
|
This pull request/issue has been closed due to lack of activity. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time. |
* Add config and header support for confluent schema registry. (porting code from #9096) * Add Eclipse Public License 2.0 to license check * Update licenses.yaml, revert changes to check-licenses.py and dependencies for integration-tests * Add spelling exception and remove unused dependency * Use non-deprecated getSchemaById() and remove duplicated license entry * Update docs/ingestion/data-formats.md Co-authored-by: Clint Wylie <cjwylie@gmail.com> * Added check for schema being null, as per Confluent code * Missing imports and whitespace * Updated unit tests with AvroSchema Co-authored-by: Sergio Spinatelli <sergio.spinatelli.extern@7-tv.de> Co-authored-by: Sergio Spinatelli <sergio.spinatelli.extern@joyn.de> Co-authored-by: Clint Wylie <cjwylie@gmail.com>
Fixes #8806 .
Description
Enhancing schema registry client i.e.
SchemaRegistryBasedAvroBytesDecoderto accept additional config's, header's and able to query schema's from multi schema instances.SchemaRegistryBasedAvroBytesDecoderto acceptconfigandheader'sas Json properties.urls5.2.0, which is compatible with existing kafka version:2.2.1getByIDtogetById.This PR has:
Key changed/added classes in this PR
SchemaRegistryBasedAvroBytesDecoder