You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Guozhang Wang (JIRA)" <ji...@apache.org> on 2016/07/06 17:47:11 UTC

[jira] [Resolved] (KAFKA-3794) Add Stream / Table prefix in print functions

     [ https://issues.apache.org/jira/browse/KAFKA-3794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guozhang Wang resolved KAFKA-3794.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 0.10.1.0

Issue resolved by pull request 1577
[https://github.com/apache/kafka/pull/1577]

> Add Stream / Table prefix in print functions
> --------------------------------------------
>
>                 Key: KAFKA-3794
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3794
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>            Reporter: Guozhang Wang
>            Assignee: Bill Bejeck
>              Labels: newbie, user-experience
>             Fix For: 0.10.1.0
>
>
> Currently the KTable/KStream.print() operator will print the key-value pair as it was forwarded to this operator. However, if there are multiple operators in the topologies with the same {{PrintStream}} (e.g. stdout), their printed key-value pairs will be interleaving on that stream channel.
> Hence it is better to add a prefix for different KStream/KTable.print operators. One proposal:
> 1) For KTable, it inherits a table name when created, and we can use that name as the prefix as {{[table-name]: key, value}}.
> 2) For KStream, we can overload the function with an additional "name" parameter that we use as the prefix; if it is not specified, then we can use the parent processor node name, which has the pattern like {{KSTREAM-JOIN-suffix_index}}.



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