[
https://issues.apache.org/jira/browse/CAMEL-20940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151841#comment-18151841
]
Urmila Unni commented on CAMEL-20940:
-------------------------------------
Hi, I'd like to work on this one if that's OK.
I checked the code on main, and this is still valid: marshal still casts the
body with (List<?>) graph, and the body description says a single record fails.
My plan: in marshal, accept any Iterable (such as a Collection) or an array
instead of casting the body to a List, and write a single object as one record.
I'd leave JSON text (String, stream or byte[]) for a separate change, as each
JSON object would first have to become an Avro record of the schema. I'll add
tests for each body type and update the description of the body.
> camel-parquet-avro - Marshal should accept body that are not a List
> -------------------------------------------------------------------
>
> Key: CAMEL-20940
> URL: https://issues.apache.org/jira/browse/CAMEL-20940
> Project: Camel
> Issue Type: Improvement
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.x
>
>
> Currently its hardcoded to a List
> List<?> list = (List<?>) graph;
> It should instead be more accepting input as it can be a string/stream/byte[]
> of json data or something. Or something that can be iterated.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)