Github user arina-ielchiieva commented on a diff in the pull request:

    https://github.com/apache/drill/pull/666#discussion_r91959700
  
    --- 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.apply(fs, fileName.getParent());
    +      storageStrategy.apply(fs, fileName);
    --- End diff --
    
    1. Permissions will be updated. 
    For persistent: dir - 775, file - 644.
    For temporary: dir - 700, file - 600.
    2. We can't change the existing one, since writer is the one who creates 
the directory.
    3. `PARTITION BY` doesn't create sub-directories, it creates separate files 
for each partition.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to