mjsax commented on code in PR #21237:
URL: https://github.com/apache/kafka/pull/21237#discussion_r2836843468


##########
streams/src/main/java/org/apache/kafka/streams/kstream/KGroupedStream.java:
##########
@@ -383,7 +383,10 @@ KTable<K, V> reduce(final Reducer<V> reducer,
      * Thus, {@code aggregate(Initializer, Aggregator)} can be used to compute 
aggregate functions like
      * count (cf. {@link #count()}).
      * <p>
-     * The default value serde from config will be used for serializing the 
result.
+     * The key serde is inherited from the upstream processing chain (e.g., 
from a {@code Consumed} instance
+     * or a previous {@code groupBy} operation).
+     * The default value serde from the config will be used for serializing 
the result, as the value type
+     * may have changed.

Review Comment:
   ```
   The default value serde from the config will be used for serializing the 
result, because {@code aggregate()} may change the value type.
   ```



-- 
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