flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-2457) Integrate Tuple0
Date Wed, 05 Aug 2015 10:24:04 GMT

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

ASF GitHub Bot commented on FLINK-2457:

Github user StephanEwen commented on the pull request:

    Quoting from above:
    In many cases, the problem that Tuple0 does not consume anything, will be caught by the
fact that other data that is stored or shipped with the tuple will advance the stream. However,
relying on that is super dangerous. As soon as you hit a case where that is not given, it
will not work any more.
    Not being able to find a counter example does not mean it is correct. 
    The network stack works, because it ships metadata bytes per element. With the TypeSerializerInput/Output
format example, the output writes for 10 elements an empty file, the input reads either none
or infinitely many. There is at least one counterexample.
    What is so bad about creating a `Tuple0Serializer` that writes a dummy byte per tuple?

> Integrate Tuple0
> ----------------
>                 Key: FLINK-2457
>                 URL: https://issues.apache.org/jira/browse/FLINK-2457
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Matthias J. Sax
>            Assignee: Matthias J. Sax
>            Priority: Minor
> Tuple0 is not cleanly integrated:
>   - missing serialization/deserialization support in runtime
>  - Tuple.getTupleClass(int arity) cannot handle arity zero, ie, cannot create an instance
of Tuple0
> Tuple0 is currently only used in Python API, but will be integrated into Storm compatibility,

This message was sent by Atlassian JIRA

View raw message