We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 055b2ed commit b46b77dCopy full SHA for b46b77d
1 file changed
opensearch/src/main/java/org/opensearch/sql/opensearch/executor/OpenSearchExecutionEngine.java
@@ -66,7 +66,12 @@ public OpenSearchExecutionEngine(
66
this.client = client;
67
this.executionProtector = executionProtector;
68
this.planSerializer = planSerializer;
69
- registerOpenSearchFunctions();
+ AccessController.doPrivileged(
70
+ (PrivilegedAction<Void>)
71
+ () -> {
72
+ registerOpenSearchFunctions();
73
+ return null;
74
+ });
75
}
76
77
@Override
0 commit comments