Skip to content

Commit

Permalink
[SPARK-35332][SQL][FOLLOWUP] Refine wrong comment
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

Refine comment in `CacheManager`.

### Why are the changes needed?

Avoid misleading developer.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Not needed.

Closes #32543 from ulysses-you/SPARK-35332-FOLLOWUP.

Authored-by: ulysses-you <[email protected]>
Signed-off-by: Kent Yao <[email protected]>
  • Loading branch information
ulysses-you authored and yaooqinn committed May 14, 2021
1 parent d424771 commit 6218bc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class CacheManager extends Logging with AdaptiveSparkPlanHelper {
}

/**
* If CAN_CHANGE_CACHED_PLAN_OUTPUT_PARTITIONING is disabled, just return original session.
* If CAN_CHANGE_CACHED_PLAN_OUTPUT_PARTITIONING is enabled, just return original session.
*/
private def getOrCloneSessionWithConfigsOff(session: SparkSession): SparkSession = {
if (session.sessionState.conf.getConf(SQLConf.CAN_CHANGE_CACHED_PLAN_OUTPUT_PARTITIONING)) {
Expand Down

0 comments on commit 6218bc5

Please sign in to comment.