AvroCoder is quite overconfident: it claims to be able to create a schema for things it certainly cannot
Open
bug
core
java
P3
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 4.7k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 205
Description
AvoCoder claims it can create a schema for:
```
public static class X {
public Thread t = Thread.currentThread();
}
```
The issue goes all the way to Avro, we think. To be investigated. Meanwhile, we need AvroCoder to say no to such things.
Imported from Jira [BEAM-2182](https://issues.apache.org/jira/browse/BEAM-2182). Original Jira may contain additional context.
Reported by: kenn.
Contributor guide
Research direction
Start by reproducing the Java example with AvroCoder and trace how schema generation handles the Thread field, including the path into Avro mentioned in the issue. Done means AvroCoder rejects this unsupported type instead of claiming it can create a schema.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- data-engineering
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100