cecemei commented on code in PR #18366:
URL: https://github.com/apache/druid/pull/18366#discussion_r2257852377


##########
sql/src/main/java/org/apache/druid/sql/SqlQueryPlus.java:
##########
@@ -65,25 +65,30 @@ public class SqlQueryPlus
   @Nullable
   private final SqlNode sqlNode;
   private boolean allowSetStatements;
-  private final Map<String, Object> queryContext;
+  private final Map<String, Object> stmtContext;
+  private final Map<String, Object> userProvidedContext;
   private final List<TypedValue> parameters;
   private final AuthenticationResult authResult;
 
   private SqlQueryPlus(
       String sql,
       SqlNode sqlNode,
       boolean allowSetStatements,
-      Map<String, Object> queryContext,
+      Map<String, Object> stmtContext,
+      Map<String, Object> userProvidedContext,
       List<TypedValue> parameters,
       AuthenticationResult authResult
   )
   {
     this.sql = Preconditions.checkNotNull(sql);
     this.sqlNode = sqlNode;
     this.allowSetStatements = allowSetStatements;
-    this.queryContext = queryContext == null
-                        ? Collections.emptyMap()
-                        : Collections.unmodifiableMap(new 
HashMap<>(queryContext));
+    this.stmtContext = stmtContext == null
+                       ? Collections.emptyMap()
+                       : Collections.unmodifiableMap(new 
HashMap<>(stmtContext));
+    this.userProvidedContext = userProvidedContext == null

Review Comment:
   actually maybe `authContextKeys` might be better



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to