flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maximilian Michels (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-2124) FromElementsFunction is not really Serializable
Date Thu, 05 Nov 2015 18:23:27 GMT

    [ https://issues.apache.org/jira/browse/FLINK-2124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14992176#comment-14992176
] 

Maximilian Michels commented on FLINK-2124:
-------------------------------------------

I just tried the following:

{code:java}
public class FromElements {

	static class PoJo {
		public String[] test = {"Just", "testing", "this"};

		@Override
		public String toString() {
			return Arrays.toString(test);
		}
	}

	public static void main(String[] args) throws Exception {

		StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();

		DataStreamSource<PoJo> source = env.<PoJo>fromElements(new PoJo(), new PoJo(),
new PoJo());
		
		source.print();

		env.execute();
	}
}
{code}

It worked fine and the PoJo class is not serializable. Does that example also fail in your
setup?

> FromElementsFunction is not really Serializable
> -----------------------------------------------
>
>                 Key: FLINK-2124
>                 URL: https://issues.apache.org/jira/browse/FLINK-2124
>             Project: Flink
>          Issue Type: Bug
>          Components: Streaming
>            Reporter: Aljoscha Krettek
>            Assignee: Johannes Reifferscheid
>             Fix For: 0.10
>
>
> The function stores an Iterable of T. T is not necessarily Serializable and and Iterable
is also not necessarily Serializable.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message