[
https://issues.apache.org/jira/browse/DRILL-4956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15727715#comment-15727715
]
ASF GitHub Bot commented on DRILL-4956:
---------------------------------------
Github user paul-rogers commented on a diff in the pull request:
https://github.com/apache/drill/pull/666#discussion_r91226488
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/ParquetRecordWriter.java
---
@@ -382,4 +396,20 @@ public void cleanup() throws IOException {
codecFactory.release();
}
+
+ /**
+ * Prepares location where files will be written to.
+ * Creates directory if not present, applies storage strategy.
+ *
+ * @return path to files location
+ * @throws IOException during directory creation or permission setting
problems
+ */
+ private Path prepareLocationPath() throws IOException {
+ if (locationPath == null) {
+ locationPath = new Path(location);
+ fs.mkdirs(locationPath);
+ storageStrategy.apply(fs, locationPath);
--- End diff --
This will apply the permissions only to the deepest of the directories
created by mkdirs?
> Temporary tables support
> ------------------------
>
> Key: DRILL-4956
> URL: https://issues.apache.org/jira/browse/DRILL-4956
> Project: Apache Drill
> Issue Type: Improvement
> Affects Versions: 1.8.0
> Reporter: Arina Ielchiieva
> Assignee: Arina Ielchiieva
> Labels: doc-impacting
> Fix For: Future
>
>
> Link to design doc -
> https://docs.google.com/document/d/1gSRo_w6q2WR5fPx7SsQ5IaVmJXJ6xCOJfYGyqpVOC-g/edit
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)