navina commented on code in PR #9511: URL: https://github.com/apache/pinot/pull/9511#discussion_r985551184
########## pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/LLRealtimeSegmentDataManager.java: ########## @@ -543,23 +543,32 @@ private boolean processStreamEvents(MessageBatch messagesAndOffsets, long idlePi // Decode message StreamDataDecoderResult decodedRow = _streamDataDecoder.decode(messagesAndOffsets.getStreamMessage(index)); RowMetadata msgMetadata = messagesAndOffsets.getStreamMessage(index).getMetadata(); + GenericRow decoderResult; if (decodedRow.getException() != null) { Review Comment: I think header issues might be more critical as metadata is usually populated by the stream plugin itself and should be standardized for each. I took another look at the code and realized that we just add the header object into the GenericRow. There is no actual decoding happening here. Not sure how this will be transformed in the transform pipeline. ``` RowMetadata metadata = message.getMetadata(); if (metadata != null) { metadata.getHeaders().getFieldToValueMap() .forEach((key, value) -> row.putValue(HEADER_KEY_PREFIX + key, value)); metadata.getRecordMetadata() .forEach((key, value) -> row.putValue(METADATA_KEY_PREFIX + key, value)); } ``` -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org