LQXshane commented on code in PR #15740: URL: https://github.com/apache/kafka/pull/15740#discussion_r1650214064
########## streams/src/main/java/org/apache/kafka/streams/kstream/internals/KStreamImpl.java: ########## @@ -222,21 +226,21 @@ public <KR> KStream<KR, V> selectKey(final KeyValueMapper<? super K, ? super V, final Named named) { Objects.requireNonNull(mapper, "mapper can't be null"); Objects.requireNonNull(named, "named can't be null"); - + final boolean repartitionRequired = !(graphNode instanceof PartitionPreservingNode); final ProcessorGraphNode<K, V> selectKeyProcessorNode = internalSelectKey(mapper, new NamedInternal(named)); - selectKeyProcessorNode.keyChangingOperation(true); + selectKeyProcessorNode.keyChangingOperation(repartitionRequired); builder.addGraphNode(graphNode, selectKeyProcessorNode); // key serde cannot be preserved return new KStreamImpl<>( - selectKeyProcessorNode.nodeName(), - null, - valueSerde, - subTopologySourceNodes, - true, - selectKeyProcessorNode, - builder); + selectKeyProcessorNode.nodeName(), Review Comment: Thanks, reverted these indentations -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org