deemoliu commented on code in PR #12980: URL: https://github.com/apache/pinot/pull/12980#discussion_r1597159361
########## pinot-plugins/pinot-input-format/pinot-protobuf/src/main/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufUtils.java: ########## @@ -48,21 +50,158 @@ public static InputStream getDescriptorFileInputStream(String descriptorFilePath PinotFS pinotFS = PinotFSFactory.create(scheme); Path localTmpDir = Files.createTempDirectory(TMP_DIR_PREFIX + System.currentTimeMillis()); File protoDescriptorLocalFile = createLocalFile(descriptorFileURI, localTmpDir.toFile()); - LOGGER.info("Copying protocol buffer descriptor file from source: {} to dst: {}", descriptorFilePath, + LOGGER.info("Copying protocol buffer jar/descriptor file from source: {} to dst: {}", filePath, protoDescriptorLocalFile.getAbsolutePath()); pinotFS.copyToLocalFile(descriptorFileURI, protoDescriptorLocalFile); - return new FileInputStream(protoDescriptorLocalFile); + return protoDescriptorLocalFile; Review Comment: why this is named `protoDescriptorLocalFile`? i thought this can be jar file? -- 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