pan3793 commented on code in PR #7837:
URL: https://github.com/apache/kyuubi/pull/7837#discussion_r4490315971


##########
extensions/server/kyuubi-server-plugin/src/main/java/org/apache/kyuubi/plugin/SessionConfAdvisor.java:
##########
@@ -20,11 +20,11 @@
 import java.util.Collections;
 import java.util.Map;
 
-/** Provide the session configuration according to the user and session 
configuration. */
+/** Provide the session configuration according to the user and normalized 
request configuration. */
 public interface SessionConfAdvisor {
-  /** The returned conf will overwrite the session conf */
+  /** The returned configuration overrides the normalized request 
configuration. */
   @SuppressWarnings("unchecked")
-  default Map<String, String> getConfOverlay(String user, Map<String, String> 
sessionConf) {
+  default Map<String, String> getConfOverlay(String user, Map<String, String> 
normalizedConf) {

Review Comment:
   I think the `sessionConf` here is correct, we don't need this change.



##########
externals/kyuubi-data-agent-engine/src/main/scala/org/apache/kyuubi/engine/dataagent/operation/DataAgentOperationManager.scala:
##########
@@ -25,13 +25,13 @@ import org.apache.kyuubi.operation.{Operation, 
OperationManager}
 import org.apache.kyuubi.session.Session
 
 class DataAgentOperationManager(
-    conf: KyuubiConf,
+    engineConf: KyuubiConf,
     dataAgentProvider: DataAgentProvider) extends 
OperationManager("DataAgentOperationManager") {
 
   override def newExecuteStatementOperation(
       session: Session,
       statement: String,
-      confOverlay: Map[String, String],
+      requestConf: Map[String, String],

Review Comment:
   it should be `requestConfOverlay` or `reqConfOverlay` if the former looks 
too long.



##########
externals/kyuubi-data-agent-engine/src/main/scala/org/apache/kyuubi/engine/dataagent/operation/ExecuteStatement.scala:
##########
@@ -86,8 +86,8 @@ class ExecuteStatement(
       MDC.put("operationId", operationId)
       MDC.put("sessionId", sessionId)
       val request = new ProviderRunRequest(statement)
-      // Merge session-level conf with per-statement confOverlay (overlay 
takes precedence)
-      val mergedConf = session.conf ++ confOverlay
+      // Merge session-level conf with per-statement requestConf (request 
takes precedence)
+      val mergedConf = session.conf ++ requestConf

Review Comment:
   ```suggestion
         val requestConf = session.conf ++ reqConfOverlay
   ```



##########
externals/kyuubi-data-agent-engine/src/main/scala/org/apache/kyuubi/engine/dataagent/session/DataAgentSessionImpl.scala:
##########
@@ -26,12 +26,13 @@ class DataAgentSessionImpl(
     user: String,
     password: String,
     ipAddress: String,
-    conf: Map[String, String],
+    requestConf: Map[String, String],

Review Comment:
   How can a session hold a request conf?



##########
externals/kyuubi-data-agent-engine/src/main/scala/org/apache/kyuubi/engine/dataagent/operation/ExecuteStatement.scala:
##########
@@ -33,7 +33,7 @@ import org.apache.kyuubi.session.Session
 class ExecuteStatement(
     session: Session,
     override val statement: String,
-    confOverlay: Map[String, String],
+    requestConf: Map[String, String],

Review Comment:
   same here, should be `reqConfOverlay`



-- 
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