Github user paul-rogers commented on a diff in the pull request:

    https://github.com/apache/drill/pull/666#discussion_r94858477
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/json/JsonRecordWriter.java
 ---
    @@ -82,6 +84,9 @@ public void init(Map<String, String> writerOptions) 
throws IOException {
         Path fileName = new Path(location, prefix + "_" + index + "." + 
extension);
         try {
           stream = fs.create(fileName);
    +      // set storage strategy for folder and file
    +      storageStrategy.applyToFolder(fs, fileName.getParent());
    --- End diff --
    
    Does this handle the case where I ask to create "foo/bar/mumble/myFile" 
where "foo" exists but "bar" and "mumble" are both new? That is, does it set 
permissions on the full set of newly created folders? Should the 
`applyToFolder` also take on the `mkdirs` task so that it can create each 
folder in the path and set permissions on that folder?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to