NIFI-4612: Allow AvroSchemaRegistry to disable name validation#2275
NIFI-4612: Allow AvroSchemaRegistry to disable name validation#2275mattyb149 wants to merge 1 commit intoapache:masterfrom
Conversation
|
Code change LGTM, full build OK, merging to master, thanks @mattyb149 |
|
Hello Team I am currently facing the hyphen ( dash ) issue in Apache Avro schema that we use along with Schema Registry for deserialization. Few field names in our Avro Schema contain dashes. I need help to locate the above proposed solution i.e. how to use the AvroSchemaRegistry and the boolean value to disable the validation. I assume its not a property in the Confluent Schema Registry. Can someone share any resource which shows how to bring in AvroSchemaRegistry in picture with the Avro Schema so that I can set the property to disable the field name validation somwhere. We Specify the .avsc files in aspring boot microservice which after compiled generated the corresponging POJOS that we use in other micro-services (spring boot apps). We do not have any other Java implementation to manipulate the avro schemas. |
|
How do the other apps work with an invalid schema? If you need to "normalize" the names so the schema is valid (and the data is not already in Avro format), I wrote a blog post showing how to do that. |
|
Hi @mattyb149 , other apps dont work with invalid schema . What I mean in until now we did not have any case where avro schema field name had dash ( hiphen) in it. But now in some use cases we do have field names with dash ( hiphen ) which does not get compiled by Avro. So can you please help me to understand where and how can I implement / incorporate the given solution in this ticket to disable name validation. |
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically master)?
Is your initial contribution a single, squashed commit?
For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.