-
Notifications
You must be signed in to change notification settings - Fork 14.5k
KAFKA-16339: [4/4 KStream#flatTransformValues] Remove Deprecated "transformer" methods and classes #17882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8088b56
to
3b42776
Compare
Hi, @mjsax! I have a question for this PR. I'm wondering if |
Looking into the test code, it seem the |
5b8bbc8
to
0b18c5a
Compare
Thanks, @mjsax! Alright, just a confirmation. |
0b18c5a
to
075fa2d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Made a pass. Think we can remove a little more code, which is unused now.
final String... stateStoreNames) { | ||
Objects.requireNonNull(valueTransformerSupplier, "valueTransformerSupplier can't be null"); | ||
return doFlatTransformValues( | ||
toValueTransformerWithKeySupplier(valueTransformerSupplier), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can also remove toValueTransformerWithKeySupplier(...)
? Should be unused now?
for (final String stateStoreName : stateStoreNames) { | ||
Objects.requireNonNull(stateStoreName, "stateStoreNames can't contain `null` as store name"); | ||
} | ||
ApiUtils.checkSupplier(valueTransformerWithKeySupplier); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can also remove this checkSupplier(...)
overload from ApiUtils
?
@fonsdant -- This PR need a rebase to resolve conflicts. Would also be great if you could also address the two minor comments from the review, so we can merge this PR. |
Thanks, @mjsax! Sorry for the delay this week. I can push the changes by tomorrow. |
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
…ream Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
…nectedStoreProvider Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
…sValuesOperation Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
…pplier Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
…erSupplier Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
075fa2d
to
f9d2bf8
Compare
Thanks for the PR. Merged to |
…nsformer" methods and classes (apache#17882) Reviewer: Matthias J. Sax <[email protected]>
@fonsdant -- Would you be interested to help us updating the docs? Eg https://kafka.apache.org/39/documentation/streams/developer-guide/dsl-api.html#applying-processors-and-transformers-processor-api-integration -- there might be other parts, too, which we need to update. It would also be good to maybe add a guide (ie, some simple examples) how to rewrite old code for the new Besides Don't feel obligated. Just let us know. -- If you don't have interest, we can also work through it on our side. |
@mjsax, of course! Thanks for mentioning me! Have we already a task for this or should I create a minor PR? |
MINOR PR is fine -- if you do a dedicated PR only for |
…nsformer" methods and classes (apache#17882) Reviewer: Matthias J. Sax <[email protected]>
No description provided.