Skip to content

Commit

Permalink
[KYUUBI #6147][TRINO] Using the overlay conf as session conf
Browse files Browse the repository at this point in the history
  • Loading branch information
zwangsheng committed Mar 8, 2024
1 parent 6fc7552 commit 4ee7c04
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ class TrinoSessionImpl(
sessionManager: SessionManager)
extends AbstractSession(protocol, user, password, ipAddress, conf, sessionManager) {

val sessionConf: KyuubiConf = sessionManager.getConf
val sessionConf: KyuubiConf = {
val engineConf = sessionManager.getConf
conf.foreach(kv => engineConf.set(kv._1, kv._2))
engineConf
}

override val handle: SessionHandle =
conf.get(KYUUBI_SESSION_HANDLE_KEY).map(SessionHandle.fromUUID).getOrElse(SessionHandle())
Expand Down

0 comments on commit 4ee7c04

Please sign in to comment.