You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@samza.apache.org by weisong44 <gi...@git.apache.org> on 2018/06/06 20:21:50 UTC
[GitHub] samza pull request #547: Convert a put to to a delete operation in ReadWrite...
GitHub user weisong44 opened a pull request:
https://github.com/apache/samza/pull/547
Convert a put to to a delete operation in ReadWriteTable and TableWriteFunction when input value is null
Currently, the behavior of putting a null value is inconsistent: it is a delete for RocksDB, and not supported in in-memory store, and on a case-by-case basis for remote tables. It is desirable to unify the behavior. Furthermore, it eases the writing of a change captured stream to a table. A change captured stream contains typically 3 types of events: INSERT, UPDATE and DELETE, and they need to be applied properly when written to a table to produce a correct snapshot. In a change captured stream the payload of a DELETE event is typically is null, and this would result in a delete operation to a table in sendTo() operator.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/weisong44/samza table-fix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/samza/pull/547.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 #547
----
commit a3c5476c00da63902a529b6bbea665faa3da0099
Author: Wei Song <ws...@...>
Date: 2018-06-06T20:08:09Z
Convert a put to to a delete operation when input value is null.
----
---
[GitHub] samza pull request #547: Convert a put to to a delete operation in ReadWrite...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/samza/pull/547
---