Re: [Feature proposal] Java Record Schema inference

2024-04-16 Thread Maciej Szwaja via dev
Thank you Reuven for the response! I'll update the design doc to include adding support for the generic classes. As for the new reflection API that's what I propose in the doc as well, it seems like the right choice. By codegen path you mean using bytebuddy to generate the constructor and the

Re: [Feature proposal] Java Record Schema inference

2024-04-15 Thread Reuven Lax via dev
Some initial thoughts: Making schema inference handle generic classes would be a nice improvement - users occasionally bump into this restriction, and there's no reason not to improve it. I would recommend using the new Java reflection APIs (i.e. getRecordComponents) to directly infer the

[Feature proposal] Java Record Schema inference

2024-04-15 Thread Maciej Szwaja via dev
Hi team, I'd like to propose a new java sdk extension feature, which is adding support for java record schema inference - see the design doc here: https://docs.google.com/document/d/1zSQ9cnqtVM8ttJEuHBDE6hw4qjUuJy1dpZWB6IBTuOs/edit?usp=sharing In short - adding this extension's jar to the