mattcasters opened a new pull request, #8567: URL: https://github.com/apache/hop/pull/8567
## Summary - Renames the Avro Decode **Get fields** button to **Get fields from file**. It still uses a schema already attached to the source field, and otherwise reads the first record of an Avro file. - Adds **Get fields from JSON**, which appends the same field rows from a pasted Hop Avro value (`schema` and `data`), a bare Avro record schema, or one sample record. Sample types are a best effort: JSON null becomes String, and only top-level fields are added. - Does not change runtime decoding. Avro Decode still accepts only an Avro Record field. Fixes #8539. ## Test plan - [x] `./mvnw -pl plugins/tech/avro test -Dtest=AvroDecodeFieldFinderTest,AvroDecodeTests` - [ ] Open Avro Decode and use **Get fields from file** on a transform whose source field already has a schema, and on one that does not (file dialog). - [ ] Paste a Hop Avro value, a record schema, and a sample record with **Get fields from JSON** and confirm the field table rows. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
