You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by ymatsuda <gi...@git.apache.org> on 2015/12/14 19:26:04 UTC

[GitHub] kafka pull request: KAFKA-2984: ktable sends old values when requi...

GitHub user ymatsuda opened a pull request:

    https://github.com/apache/kafka/pull/672

    KAFKA-2984: ktable sends old values when required

    @guozhangwang 
    
    At DAG level, `KTable<K,V>` sends (key, (new value, old value)) to down stream.  This is done by wrapping the new value and the old value in an instance of `Change<V>` class and sending it as a "value" part of the stream. The old value is omitted (set to null) by default for optimization. When any downstream processor needs to use the old value, the framework should enable it (see `KTableImpl.enableSendingOldValues()` and implementations of `KTableProcessorSupplier.enableSensingOldValues()`).
    
    NOTE: This is meant to be used by aggregation. But, if there is a use case like a SQL database trigger, we can add a new KTable method to expose this. 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ymatsuda/kafka trigger

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/672.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 #672
    
----
commit 41bbef2c1ba6e170403f7b48fcb618bbe49d9b6c
Author: Yasuhiro Matsuda <ya...@confluent.io>
Date:   2015-12-11T22:41:55Z

    KAFKA-2984: KTable should send old values along with new values to downstreams

commit 91a9fad6e729bf631d82a88db5bb6ec483ae2062
Author: Yasuhiro Matsuda <ya...@confluent.io>
Date:   2015-12-14T18:08:15Z

    Merge branch 'trunk' of github.com:apache/kafka into trigger

commit 7a1b689c594d2e859454c28a2367df793178d3b9
Author: Yasuhiro Matsuda <ya...@confluent.io>
Date:   2015-12-14T18:08:50Z

    method names

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] kafka pull request: KAFKA-2984: ktable sends old values when requi...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/kafka/pull/672


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---