Skip to content

Commit

Permalink
feat: add partitions to PRINT TOPIC output
Browse files Browse the repository at this point in the history
  • Loading branch information
agavra committed Nov 18, 2020
1 parent 976c852 commit c9102ac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ private List<String> formatRecords(final Iterable<ConsumerRecord<Bytes, Bytes>>
private String formatRecord(final ConsumerRecord<Bytes, Bytes> record) {
return "rowtime: " + formatRowTime(record.timestamp())
+ ", " + "key: " + keyDeserializers.format(record.key())
+ ", value: " + valueDeserializers.format(record.value());
+ ", value: " + valueDeserializers.format(record.value())
+ ", partition: " + record.partition();
}

private static String formatRowTime(final long timestamp) {
Expand Down

0 comments on commit c9102ac

Please sign in to comment.