Skip to content

Commit 202dac1

Browse files
author
Andrew Or
committed
Make ignoreParent false by default
1 parent e61b1ab commit 202dac1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/rdd/RDDOperationScope.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private[spark] object RDDOperationScope {
9696
sc: SparkContext,
9797
allowNesting: Boolean = false)(body: => T): T = {
9898
val callerMethodName = Thread.currentThread.getStackTrace()(3).getMethodName
99-
withScope[T](sc, callerMethodName, allowNesting, ignoreParent = false)(body)
99+
withScope[T](sc, callerMethodName, allowNesting)(body)
100100
}
101101

102102
/**
@@ -116,7 +116,7 @@ private[spark] object RDDOperationScope {
116116
sc: SparkContext,
117117
name: String,
118118
allowNesting: Boolean,
119-
ignoreParent: Boolean)(body: => T): T = {
119+
ignoreParent: Boolean = false)(body: => T): T = {
120120
// Save the old scope to restore it later
121121
val scopeKey = SparkContext.RDD_SCOPE_KEY
122122
val noOverrideKey = SparkContext.RDD_SCOPE_NO_OVERRIDE_KEY

0 commit comments

Comments
 (0)