clintropolis commented on a change in pull request #11293:
URL: https://github.com/apache/druid/pull/11293#discussion_r638401372
##########
File path:
extensions-core/protobuf-extensions/src/main/java/org/apache/druid/data/input/protobuf/ProtobufInputRowParser.java
##########
@@ -89,11 +89,13 @@ public ProtobufInputRowParser withParseSpec(ParseSpec
parseSpec)
parser = parseSpec.makeParser();
}
Map<String, Object> record;
+ DateTime timestamp;
if (parseSpec instanceof JSONParseSpec && ((JSONParseSpec)
parseSpec).getFlattenSpec().getFields().isEmpty()) {
try {
DynamicMessage message = protobufBytesDecoder.parse(input);
record = CollectionUtils.mapKeys(message.getAllFields(), k ->
k.getJsonName());
+ timestamp = extractTimestampAsJson(record);
Review comment:
could you fix this for the protobuf input format as well?
https://github.com/apache/druid/blob/master/extensions-core/protobuf-extensions/src/main/java/org/apache/druid/data/input/protobuf/ProtobufReader.java#L87
is the relevant section for it I think
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]