You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2020/08/11 08:17:38 UTC
[GitHub] [incubator-pinot] KKcorps commented on a change in pull request #5836: Fix data ingestion from Amazon S3 bucket
KKcorps commented on a change in pull request #5836:
URL: https://github.com/apache/incubator-pinot/pull/5836#discussion_r468406304
##########
File path: pinot-plugins/pinot-file-system/pinot-s3/src/test/java/org/apache/pinot/plugin/filesystem/S3PinotFSTest.java
##########
@@ -28,12 +28,16 @@
import java.util.Arrays;
import java.util.List;
import org.apache.commons.io.IOUtils;
+import org.apache.pinot.spi.env.PinotConfiguration;
Review comment:
Removed unused imports.
##########
File path: pinot-plugins/pinot-file-system/pinot-s3/src/main/java/org/apache/pinot/plugin/filesystem/S3PinotFS.java
##########
@@ -391,7 +393,11 @@ public long length(URI fileUri)
listObjectsV2Response.contents().stream().forEach(object -> {
//Only add files and not directories
if (!object.key().equals(fileUri.getPath()) && !object.key().endsWith(DELIMITER)) {
- builder.add(object.key());
+ String fileKey = object.key();
+ if(fileKey.startsWith(DELIMITER)){
Review comment:
does it look fine now?
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org