ihuzenko commented on a change in pull request #1559: DRILL-540: Allow querying 
hive views in Drill
URL: https://github.com/apache/drill/pull/1559#discussion_r242920937
 
 

 ##########
 File path: 
contrib/storage-hive/core/src/test/java/org/apache/drill/exec/impersonation/hive/TestSqlStdBasedAuthorization.java
 ##########
 @@ -137,15 +173,10 @@ private static void generateTestData() throws Exception {
         String.format("SELECT rownum, name, age FROM %s.%s.%s", 
MINI_DFS_STORAGE_PLUGIN_NAME, "tmp", v_student_u0g0_750));
   }
 
-  private static void createTbl(final Driver driver, final String db, final 
String tbl, final String tblDef,
-      final String data) throws Exception {
-    executeQuery(driver, String.format(tblDef, db, tbl));
-    executeQuery(driver, String.format("LOAD DATA LOCAL INPATH '%s' INTO TABLE 
%s.%s", data, db, tbl));
-  }
-
   // Irrespective of each db permissions, all dbs show up in "SHOW SCHEMAS"
   @Test
   public void showSchemas() throws Exception {
+    test("USE " + MINI_DFS_STORAGE_PLUGIN_NAME);
 
 Review comment:
   Added fix with comment in HiveAuthorizationHelper .

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to