KAFKA-16339: [2/4 KStream#flatTransform] Remove Deprecated "transformer" methods and classes#17245
Conversation
Signed-off-by: Joao Pedro Fonseca Dantas <fonsdant@gmail.com>
Signed-off-by: Joao Pedro Fonseca Dantas <fonsdant@gmail.com>
Signed-off-by: Joao Pedro Fonseca Dantas <fonsdant@gmail.com>
Signed-off-by: Joao Pedro Fonseca Dantas <fonsdant@gmail.com>
Signed-off-by: Joao Pedro Fonseca Dantas <fonsdant@gmail.com>
7ea8ea0 to
cb37065
Compare
Signed-off-by: Joao Pedro Fonseca Dantas <fonsdant@gmail.com>
Signed-off-by: Joao Pedro Fonseca Dantas <fonsdant@gmail.com>
|
Hi, @mjsax! I have rebased this branch, removed flatTransform, and refactored where needed. |
mjsax
left a comment
There was a problem hiding this comment.
Thanks for update the PR. Overall LGTM. Just one question about rewriting vs removing some tests.
| @SuppressWarnings("deprecation") | ||
| public void shouldNotAllowBadTransformerSupplierOnFlatTransform() { | ||
| final org.apache.kafka.streams.kstream.Transformer<String, String, Iterable<KeyValue<String, String>>> transformer = flatTransformerSupplier.get(); | ||
| public void shouldNotAllowBadProcessSupplierOnProcess() { |
There was a problem hiding this comment.
Is there no existing test for ProcessSupplier to test test case? Just wondering if this rewrite makes sense (and closes a test gap), or if this rewrite would duplicate an existing test (and thus, we could just remove this test instead of rewriting it)?
| @SuppressWarnings("deprecation") | ||
| public void shouldNotAllowBadTransformerSupplierOnFlatTransformWithNamed() { | ||
| final org.apache.kafka.streams.kstream.Transformer<String, String, Iterable<KeyValue<String, String>>> transformer = flatTransformerSupplier.get(); | ||
| public void shouldNotAllowBadProcessSupplierOnProcessWithNamed() { |
| @SuppressWarnings("deprecation") | ||
| public void shouldNotAllowBadTransformerSupplierOnFlatTransformWithNamedAndStores() { | ||
| final org.apache.kafka.streams.kstream.Transformer<String, String, Iterable<KeyValue<String, String>>> transformer = flatTransformerSupplier.get(); | ||
| public void shouldNotAllowBadProcessSupplierOnProcessWithNamedAndStores() { |
|
@mjsax, I have refactored only those which seemed not covered yet. To discover them, I have compared all tests referencing process and flatTransform in KStreamImplTest and removed equivalent ones. |
|
Thanks for double checking the tests! Merged to |
|
Thanks, Matthias! Two down, two to go 😃 |
…er" methods and classes (apache#17245) Reviewers: Matthias J. Sax <matthias@confluent.io>
…er" methods and classes (apache#17245) Reviewers: Matthias J. Sax <matthias@confluent.io>
This PR has as base the PR: #17198.