[
https://issues.apache.org/jira/browse/APEXMALHAR-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15219636#comment-15219636
]
ASF GitHub Bot commented on APEXMALHAR-2011:
--------------------------------------------
Github user chinmaykolhatkar commented on a diff in the pull request:
https://github.com/apache/incubator-apex-malhar/pull/211#discussion_r58023444
--- Diff:
contrib/src/main/java/com/datatorrent/contrib/avro/AvroRecordHelper.java ---
@@ -114,6 +107,7 @@ private static Object
convertAndResolveUnionToPrimitive(Schema schema, String ke
}
convertedValue =
convertValueToAvroPrimitive(types.get(i).getType(), key, value);
} catch (RuntimeException e) {
+ LOG.error("Could not handle schema resolution" + e.getMessage());
--- End diff --
Ok.. Please log the complete exception then instead of just e.getMessage()..
> POJO to Avro record converter
> -----------------------------
>
> Key: APEXMALHAR-2011
> URL: https://issues.apache.org/jira/browse/APEXMALHAR-2011
> Project: Apache Apex Malhar
> Issue Type: New Feature
> Reporter: devendra tagare
>
> We are looking to develop a record converter which would take a POJO as an
> input and emit a Generic record as the output based on the given Avro schema.
> The expected inputs for this operator would be,
> 1.Class Name of the incoming POJO
> 2.Avro schema for the Generic Record to emit.
> This operator would receive an Object on its input port and emit a Generic
> record on the output port.
> To start with, we would handle primitive types and then go on to handle
> complex types.
> Thanks,
> Dev
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)