KAFKA-6958: Overload KTable methods to allow to name operation name using the new Named class#6412
Conversation
6405ffa to
904ee34
Compare
bbejeck
left a comment
There was a problem hiding this comment.
Made a pass over the KTable and KTableImpl. Overall looks good but IMHO I think we should add KTable.toStream(). Also, there aren't tests for KTable.
There was a problem hiding this comment.
We didn't specify this in the KIP but I think toStream() and toStream(mapper) should also have overrides withNamed
There was a problem hiding this comment.
I've updated the KIP and the PR to the two methods above
|
ping @vvcephei and @ableegoldman for reviews |
|
@fhussonnois please rebase this PR |
6a37f11 to
bb40cf2
Compare
|
@fhussonnois with #6411 merged can you rebase this PR? With the bulk of the work done so far, I think we can get this PR and the last PR for KIP-307 merged relatively quickly. |
f0bf5e0 to
3d69114
Compare
|
Hi @bbejeck, this PR is rebased and ready for review. Thanks |
bbejeck
left a comment
There was a problem hiding this comment.
Thanks @fhussonnois! I just have minor comments, but otherwise, this looks good.
There was a problem hiding this comment.
nit: ditto
I'll go ahead and say we should do so for all examples (when possible of course) in the Javadoc and I won't point out anymore from this point.
There was a problem hiding this comment.
the javadoc has been updated - there was also an issue on the method name (ie : mapValue to mapValues)
There was a problem hiding this comment.
nit: change mapValue to take a lambda vs. an anonymous ValueMapper
There was a problem hiding this comment.
I think, these changes come from javadoc shift due to new methods added.
There was a problem hiding this comment.
I think, these changes come from javadoc shift due to new methods added.
vvcephei
left a comment
There was a problem hiding this comment.
Hey @fhussonnois , thanks for this!
Once you address Bill's comments, this will be fine by me.
…sing the new Named class Sub-task required to allow to define custom processor names with KStreams DSL(KIP-307) :
3d69114 to
f254c4f
Compare
|
Merged #6412 into trunk. |
|
Thanks again @fhussonnois! |
Hi @mjsax @bbejeck
This is the 4th PR for the KIP-307.
NOTE :PR 6411 should be merged first
Thanks a lot for the review.