[
https://issues.apache.org/jira/browse/DRILL-6272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16466148#comment-16466148
]
ASF GitHub Bot commented on DRILL-6272:
---------------------------------------
arina-ielchiieva commented on a change in pull request #1225: DRILL-6272:
Refactor dynamic UDFs and function initializer tests to g…
URL: https://github.com/apache/drill/pull/1225#discussion_r186472632
##########
File path:
exec/java-exec/src/test/java/org/apache/drill/exec/rpc/user/TemporaryTablesAutomaticDropTest.java
##########
@@ -19,39 +19,53 @@
import mockit.Mock;
import mockit.MockUp;
+import org.apache.drill.exec.store.StorageStrategy;
import org.apache.drill.test.BaseTestQuery;
import org.apache.drill.common.config.DrillConfig;
-import org.apache.drill.exec.ExecConstants;
import org.apache.drill.exec.store.StoragePluginRegistry;
import org.apache.drill.exec.util.StoragePluginTestUtils;
import org.apache.drill.test.DirTestWatcher;
+import org.apache.hadoop.fs.FileSystem;
+import org.apache.hadoop.fs.LocatedFileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.hadoop.fs.RemoteIterator;
+import org.apache.hadoop.fs.permission.FsPermission;
import org.junit.Before;
+import org.junit.BeforeClass;
import org.junit.Test;
import java.io.File;
-import java.util.Properties;
import java.util.UUID;
import static org.apache.drill.exec.util.StoragePluginTestUtils.DFS_TMP_SCHEMA;
+import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class TemporaryTablesAutomaticDropTest extends BaseTestQuery {
private static final String session_id = "sessionId";
+ private static FileSystem fs;
+ private static FsPermission expectedFolderPermission;
+ private static FsPermission expectedFilePermission;
+
+ @BeforeClass
+ public static void init() throws Exception {
+ fs = getLocalFileSystem();
+ expectedFolderPermission = new
FsPermission(StorageStrategy.TEMPORARY.getFolderPermission());
+ expectedFilePermission = new
FsPermission(StorageStrategy.TEMPORARY.getFilePermission());
+ }
+
@Before
- public void setup() throws Exception {
+ public void setup() {
Review comment:
Unfortunately, yes. It turned out that there is no good way to retrieve
session information in tests. Sorry for confusion.
----------------------------------------------------------------
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:
[email protected]
> Remove binary jars files from source distribution
> -------------------------------------------------
>
> Key: DRILL-6272
> URL: https://issues.apache.org/jira/browse/DRILL-6272
> Project: Apache Drill
> Issue Type: Task
> Reporter: Vlad Rozov
> Assignee: Arina Ielchiieva
> Priority: Critical
> Fix For: 1.14.0
>
>
> Per [~vrozov] the source distribution contains binary jar files under
> exec/java-exec/src/test/resources/jars
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)