pvillard31 commented on code in PR #10108:
URL: https://github.com/apache/nifi/pull/10108#discussion_r2216596671
##########
nifi-extension-bundles/nifi-mqtt-bundle/nifi-mqtt-processors/src/main/java/org/apache/nifi/processors/mqtt/ConsumeMQTT.java:
##########
@@ -518,7 +536,7 @@ private void transferQueueRecord(final ProcessContext
context, final ProcessSess
try {
if
(context.getProperty(ADD_ATTRIBUTES_AS_FIELDS).asBoolean()) {
- record.setValue(TOPIC_FIELD_KEY,
mqttMessage.getTopic());
+ adTopicFields(record,
mqttMessage.getTopic());
Review Comment:
```suggestion
addTopicFields(record,
mqttMessage.getTopic());
```
##########
nifi-extension-bundles/nifi-mqtt-bundle/nifi-mqtt-processors/src/main/java/org/apache/nifi/processors/mqtt/ConsumeMQTT.java:
##########
@@ -591,6 +609,18 @@ private void transferQueueRecord(final ProcessContext
context, final ProcessSess
logger.info("Successfully processed {} records for {}", count,
flowFile);
}
+ private void adTopicFields(
Review Comment:
```suggestion
private void addTopicFields(
```
--
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]