@@ -61,11 +61,11 @@ class RDDOperationScopeSuite extends FunSuite with BeforeAndAfter {
6161 var rdd1 : MyCoolRDD = null
6262 var rdd2 : MyCoolRDD = null
6363 var rdd3 : MyCoolRDD = null
64- RDDOperationScope .withScope(sc, " scope1" , allowNesting = false ) {
64+ RDDOperationScope .withScope(sc, " scope1" , allowNesting = false , ignoreParent = false ) {
6565 rdd1 = new MyCoolRDD (sc)
66- RDDOperationScope .withScope(sc, " scope2" , allowNesting = false ) {
66+ RDDOperationScope .withScope(sc, " scope2" , allowNesting = false , ignoreParent = false ) {
6767 rdd2 = new MyCoolRDD (sc)
68- RDDOperationScope .withScope(sc, " scope3" , allowNesting = false ) {
68+ RDDOperationScope .withScope(sc, " scope3" , allowNesting = false , ignoreParent = false ) {
6969 rdd3 = new MyCoolRDD (sc)
7070 }
7171 }
@@ -84,11 +84,13 @@ class RDDOperationScopeSuite extends FunSuite with BeforeAndAfter {
8484 var rdd1 : MyCoolRDD = null
8585 var rdd2 : MyCoolRDD = null
8686 var rdd3 : MyCoolRDD = null
87- RDDOperationScope .withScope(sc, " scope1" , allowNesting = true ) { // allow nesting here
87+ // allow nesting here
88+ RDDOperationScope .withScope(sc, " scope1" , allowNesting = true , ignoreParent = false ) {
8889 rdd1 = new MyCoolRDD (sc)
89- RDDOperationScope .withScope(sc, " scope2" , allowNesting = false ) { // stop nesting here
90+ // stop nesting here
91+ RDDOperationScope .withScope(sc, " scope2" , allowNesting = false , ignoreParent = false ) {
9092 rdd2 = new MyCoolRDD (sc)
91- RDDOperationScope .withScope(sc, " scope3" , allowNesting = false ) {
93+ RDDOperationScope .withScope(sc, " scope3" , allowNesting = false , ignoreParent = false ) {
9294 rdd3 = new MyCoolRDD (sc)
9395 }
9496 }
@@ -107,11 +109,11 @@ class RDDOperationScopeSuite extends FunSuite with BeforeAndAfter {
107109 var rdd1 : MyCoolRDD = null
108110 var rdd2 : MyCoolRDD = null
109111 var rdd3 : MyCoolRDD = null
110- RDDOperationScope .withScope(sc, " scope1" , allowNesting = true ) {
112+ RDDOperationScope .withScope(sc, " scope1" , allowNesting = true , ignoreParent = false ) {
111113 rdd1 = new MyCoolRDD (sc)
112- RDDOperationScope .withScope(sc, " scope2" , allowNesting = true ) {
114+ RDDOperationScope .withScope(sc, " scope2" , allowNesting = true , ignoreParent = false ) {
113115 rdd2 = new MyCoolRDD (sc)
114- RDDOperationScope .withScope(sc, " scope3" , allowNesting = true ) {
116+ RDDOperationScope .withScope(sc, " scope3" , allowNesting = true , ignoreParent = false ) {
115117 rdd3 = new MyCoolRDD (sc)
116118 }
117119 }
0 commit comments