GitHub user aljoscha opened a pull request:
https://github.com/apache/incubator-flink/pull/171
Change TypeExtractor to support interfaces within classes
Before, the pojo analyzer would try to analyze a field of type List
or Map and fail. Now we catch the exception and create a GenericTypeInfo
for the enclosing class because the avro serializer can in fact
serialize objects that have fields of interface type.
This is a very easy fix. What do you think?
(BTW, another PR from the bus. :smile: )
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aljoscha/incubator-flink
type-extractor-avro-fix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-flink/pull/171.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #171
----
commit 500e63033bba44080b937d1cb2d04b816f429aad
Author: Aljoscha Krettek <[email protected]>
Date: 2014-10-31T11:10:17Z
Change TypeExtractor to support interfaces within classes
Before, the pojo analyzer would try to analyze a field of type List
or Map and fail. Now we catch the exception and create a GenericTypeInfo
for the enclosing class because the avro serializer can in fact
serialize objects that have fields of interface type.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---