Skip to content
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

Update avro_util.erl #87

Closed
wants to merge 1 commit into from
Closed

Update avro_util.erl #87

wants to merge 1 commit into from

Conversation

AlfUA
Copy link

@AlfUA AlfUA commented Jun 11, 2019

To parse a schema that contains the following structure (an object as a value):
{
"name":Limit",
"type":["null",{
"type":"bytes",
"scale":2,
"precision":64,
"connect.version":1,
"connect.parameters":{"scale":"2"},
"connect.name":"org.apache.kafka.connect.data.Decimal",
"logicalType":"decimal"
}],
"default":null
}.
So we have to add an extra function clause that should handle the nested tuple, otherwise, schema parsing fails.

handling a nested object as a value
@coveralls
Copy link

Pull Request Test Coverage Report for Build 559

  • 3 of 4 (75.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.06%) to 99.941%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/avro_util.erl 3 4 75.0%
Totals Coverage Status
Change from base Build 557: -0.06%
Covered Lines: 1697
Relevant Lines: 1698

💛 - Coveralls

@AlfUA AlfUA closed this Jun 11, 2019
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.

None yet

2 participants