drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] vdiravka commented on a change in pull request #1460: DRILL-6732: Queries are runnable on disable plugins
Date Mon, 10 Sep 2018 13:00:25 GMT
vdiravka commented on a change in pull request #1460: DRILL-6732: Queries are runnable on disable
URL: https://github.com/apache/drill/pull/1460#discussion_r216303995

 File path: exec/java-exec/src/test/java/org/apache/drill/exec/store/store/TestDisablePlugin.java
 @@ -0,0 +1,56 @@
+package org.apache.drill.exec.store.store;
+import org.apache.drill.categories.SqlTest;
+import org.apache.drill.common.exceptions.UserRemoteException;
+import org.apache.drill.exec.store.StoragePluginRegistry;
+import org.apache.drill.exec.store.dfs.FileSystemConfig;
+import org.apache.drill.test.BaseTestQuery;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Rule;
+import org.junit.Test;
+import org.junit.experimental.categories.Category;
+import org.junit.rules.ExpectedException;
+import java.nio.file.Paths;
+import static org.apache.drill.exec.util.StoragePluginTestUtils.DFS_PLUGIN_NAME;
+import static org.apache.drill.exec.util.StoragePluginTestUtils.DFS_TMP_SCHEMA;
+import static org.apache.drill.exec.util.StoragePluginTestUtils.TMP_SCHEMA;
+import static org.hamcrest.CoreMatchers.containsString;
+public class TestDisablePlugin extends BaseTestQuery {
+  private static final String tmp_table = "tmp_plugin_test";
+  @Rule
+  public ExpectedException thrown = ExpectedException.none();
+  @BeforeClass
+  public static void setUp() throws Exception {
+    StoragePluginRegistry pluginRegistry = getDrillbitContext().getStorage();
+    FileSystemConfig pluginConfig = (FileSystemConfig) pluginRegistry.getPlugin(DFS_PLUGIN_NAME).getConfig();
 Review comment:
   It can be made easier. Use `CP_PLUGIN_NAME`.
   Just disable the plugin and try the query: `SELECT * FROM cp.`employee.json` LIMIT 20`.
   Also please add separate test for `USE` statement. 

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:

With regards,
Apache Git Services

View raw message