Several bugs in AvroWrapper.createStdData(Object avroData, Schema avroSchema)
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 306
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
1. The method does not correctly handle null value of the input argument avroData
2. When avroSchema is STRING, avroData can be either a Java String or Utf8. If it's a Java String, ClassCastException will occur.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate AvroWrapper.createStdData(Object avroData, Schema avroSchema) and read its current handling of null input and STRING schemas. Verify both cases with focused tests or the existing test suite; done means null input is handled correctly and Java String values no longer cause a ClassCastException when the schema is STRING.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100