ableegoldman commented on code in PR #18155:
URL: https://github.com/apache/kafka/pull/18155#discussion_r1883739130


##########
streams/src/main/java/org/apache/kafka/streams/kstream/internals/graph/TableProcessorNode.java:
##########
@@ -62,21 +59,17 @@ public String toString() {
     @SuppressWarnings("unchecked")
     @Override
     public void writeToTopology(final InternalTopologyBuilder topologyBuilder) 
{
+        processorParameters.addProcessorTo(topologyBuilder, parentNodeNames());
+
         final String processorName = processorParameters.processorName();
-        topologyBuilder.addProcessor(processorName, 
processorParameters.processorSupplier(), parentNodeNames());
 
         if (storeNames.length > 0) {
+            // todo(rodesai): remove me once all operators have been moved to 
ProcessorSupplier
             topologyBuilder.connectProcessorAndStateStores(processorName, 
storeNames);
         }
 
-        final KTableSource<K, V> tableSource =  
processorParameters.processorSupplier() instanceof KTableSource ?
-                (KTableSource<K, V>) processorParameters.processorSupplier() : 
null;
-        if (tableSource != null) {
-            if (tableSource.materialized()) {
-                
topologyBuilder.addStateStore(Objects.requireNonNull(storeFactory, 
"storeFactory was null"),
-                                              processorName);
-            }
-        } else if (storeFactory != null) {
+        if (storeFactory != null) {
+            // todo(rodesai) remove when KTableImpl#doFilter, 
KTableImpl#doTransformValues moved to ProcessorSupplier

Review Comment:
   added these to the todo list in the jira but I'm assuming you're just going 
to knock these out after this PR?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to