Skip to content

Commit

Permalink
HIVE-28573: Unable to execute HPLSQl queries when hive authorization …
Browse files Browse the repository at this point in the history
…is enabled. (Dayakar M, reviewed by Krisztian Kasa, Dmitriy Fingerman)
  • Loading branch information
mdayakar authored Oct 17, 2024
1 parent b4dd5cf commit 49a6ff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
Original file line number Diff line number Diff line change
Expand Up @@ -6670,7 +6670,7 @@ private static String getSQLStdAuthDefaultWhiteListPattern() {
// and regex list
String confVarPatternStr = Joiner.on("|").join(convertVarsToRegex(SQL_STD_AUTH_SAFE_VAR_NAMES));
String regexPatternStr = Joiner.on("|").join(sqlStdAuthSafeVarNameRegexes);
return regexPatternStr + "|" + confVarPatternStr;
return regexPatternStr + "|" + confVarPatternStr + "|QUERY_EXECUTOR";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static void preTests() throws Exception {
hiveConf.setIntVar(HiveConf.ConfVars.HIVE_SERVER2_THRIFT_RESULTSET_DEFAULT_FETCH_SIZE, 10);
hiveConf.setBoolVar(HiveConf.ConfVars.HIVE_OPTIMIZE_METADATA_QUERIES, false);
hiveConf.set(HiveConf.ConfVars.HIVE_SERVER2_LOGGING_OPERATION_LEVEL.varname, "verbose");
hiveConf.setBoolVar(HiveConf.ConfVars.HIVE_AUTHORIZATION_ENABLED, true);
miniHS2 = new MiniHS2(hiveConf, MiniHS2.MiniClusterType.TEZ);
Map<String, String> confOverlay = new HashMap<>();
miniHS2.start(confOverlay);
Expand Down

0 comments on commit 49a6ff8

Please sign in to comment.