Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
scalafmt
  • Loading branch information
asl3 committed Jul 11, 2024
commit 215d149de7143bb4b1d30c30428840bdd5548c22
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ case class SessionHolder(userId: String, sessionId: String, session: SparkSessio
// memorizing `LogicalPlan`s which may be a sub-tree in a subsequent plan.
private lazy val planCache: Option[Cache[proto.Relation, LogicalPlan]] = {
if (SparkEnv.get.conf.get(Connect.CONNECT_SESSION_PLAN_CACHE_SIZE) <= 0) {
logWarning(log"Session plan cache is disabled due to non-positive cache size." +
log" Current value of '${MDC(LogKeys.CONFIG,
Connect.CONNECT_SESSION_PLAN_CACHE_SIZE.key)}' is ${MDC(LogKeys.CACHE_SIZE,
SparkEnv.get.conf.get(Connect.CONNECT_SESSION_PLAN_CACHE_SIZE))}")
logWarning(
log"Session plan cache is disabled due to non-positive cache size." +
log" Current value of " +
log"'${MDC(LogKeys.CONFIG, Connect.CONNECT_SESSION_PLAN_CACHE_SIZE.key)}' is ${MDC(
LogKeys.CACHE_SIZE,
SparkEnv.get.conf.get(Connect.CONNECT_SESSION_PLAN_CACHE_SIZE))}")
None
} else {
Some(
Expand Down