You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beam.apache.org by GitBox <gi...@apache.org> on 2017/11/25 09:48:03 UTC
[GitHub] chamikaramj commented on a change in pull request #4169: [BEAM-3060] Added support for multiple filesystems in TextIO
chamikaramj commented on a change in pull request #4169: [BEAM-3060] Added support for multiple filesystems in TextIO
URL: https://github.com/apache/beam/pull/4169#discussion_r153042101
##########
File path: sdks/java/io/file-based-io-tests/src/test/java/org/apache/beam/sdk/io/text/TextIOIT.java
##########
@@ -81,13 +81,38 @@ public static void setup() throws ParseException {
.as(IOTestPipelineOptions.class);
numberOfTextLines = options.getNumberOfRecords();
- filenamePrefix = appendTimestamp(options.getFilenamePrefix());
+ filenamePrefix = resolveProtocolAndPath(options);
}
private static String appendTimestamp(String filenamePrefix) {
return String.format("%s_%s", filenamePrefix, new Date().getTime());
}
+ private static String resolveProtocolAndPath(IOTestPipelineOptions options) {
Review comment:
I'm not sure why we need to parse and reassemble protocol here. We shouldn't have to do this if we ask user to give the full prefix that includes the protocol.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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
With regards,
Apache Git Services