@@ -35,7 +35,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
3535 val planBefore = dfAdaptive.queryExecution.executedPlan
3636 assert(planBefore.toString.startsWith(" AdaptiveSparkPlan(isFinalPlan=false)" ))
3737 val result = dfAdaptive.collect()
38- withSQLConf(SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " false" ) {
38+ withSQLConf(SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " false" ) {
3939 val df = sql(query)
4040 QueryTest .sameRows(result.toSeq, df.collect().toSeq)
4141 }
@@ -82,7 +82,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
8282
8383 test(" Change merge join to broadcast join" ) {
8484 withSQLConf(
85- SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ,
85+ SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ,
8686 SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key -> " 80" ) {
8787 val (plan, adaptivePlan) = runAdaptiveAndVerifyResult(
8888 " SELECT * FROM testData join testData2 ON key = a where value = '1'" )
@@ -95,7 +95,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
9595
9696 test(" Change merge join to broadcast join and reduce number of shuffle partitions" ) {
9797 withSQLConf(
98- SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ,
98+ SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ,
9999 SQLConf .REDUCE_POST_SHUFFLE_PARTITIONS_ENABLED .key -> " true" ,
100100 SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key -> " 80" ,
101101 SQLConf .SHUFFLE_TARGET_POSTSHUFFLE_INPUT_SIZE .key -> " 150" ) {
@@ -119,7 +119,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
119119
120120 test(" Scalar subquery" ) {
121121 withSQLConf(
122- SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ,
122+ SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ,
123123 SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key -> " 80" ) {
124124 val (plan, adaptivePlan) = runAdaptiveAndVerifyResult(
125125 " SELECT * FROM testData join testData2 ON key = a " +
@@ -133,7 +133,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
133133
134134 test(" Scalar subquery in later stages" ) {
135135 withSQLConf(
136- SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ,
136+ SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ,
137137 SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key -> " 80" ) {
138138 val (plan, adaptivePlan) = runAdaptiveAndVerifyResult(
139139 " SELECT * FROM testData join testData2 ON key = a " +
@@ -147,7 +147,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
147147
148148 test(" multiple joins" ) {
149149 withSQLConf(
150- SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ,
150+ SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ,
151151 SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key -> " 80" ) {
152152 val (plan, adaptivePlan) = runAdaptiveAndVerifyResult(
153153 """
@@ -168,7 +168,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
168168
169169 test(" multiple joins with aggregate" ) {
170170 withSQLConf(
171- SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ,
171+ SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ,
172172 SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key -> " 80" ) {
173173 val (plan, adaptivePlan) = runAdaptiveAndVerifyResult(
174174 """
@@ -191,7 +191,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
191191
192192 test(" multiple joins with aggregate 2" ) {
193193 withSQLConf(
194- SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ,
194+ SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ,
195195 SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key -> " 500" ) {
196196 val (plan, adaptivePlan) = runAdaptiveAndVerifyResult(
197197 """
@@ -214,7 +214,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
214214
215215 test(" Exchange reuse" ) {
216216 withSQLConf(
217- SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ,
217+ SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ,
218218 SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key -> " 80" ) {
219219 val (plan, adaptivePlan) = runAdaptiveAndVerifyResult(
220220 " SELECT value FROM testData join testData2 ON key = a " +
@@ -230,7 +230,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
230230
231231 test(" Exchange reuse with subqueries" ) {
232232 withSQLConf(
233- SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ,
233+ SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ,
234234 SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key -> " 80" ) {
235235 val (plan, adaptivePlan) = runAdaptiveAndVerifyResult(
236236 " SELECT a FROM testData join testData2 ON key = a " +
@@ -246,7 +246,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
246246
247247 test(" Exchange reuse across subqueries" ) {
248248 withSQLConf(
249- SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ,
249+ SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ,
250250 SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key -> " 80" ,
251251 SQLConf .SUBQUERY_REUSE_ENABLED .key -> " false" ) {
252252 val (plan, adaptivePlan) = runAdaptiveAndVerifyResult(
@@ -266,7 +266,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
266266
267267 test(" Subquery reuse" ) {
268268 withSQLConf(
269- SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ,
269+ SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ,
270270 SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key -> " 80" ) {
271271 val (plan, adaptivePlan) = runAdaptiveAndVerifyResult(
272272 " SELECT a FROM testData join testData2 ON key = a " +
@@ -285,7 +285,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
285285
286286 test(" Broadcast exchange reuse across subqueries" ) {
287287 withSQLConf(
288- SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ,
288+ SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ,
289289 SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key -> " 20000000" ,
290290 SQLConf .SUBQUERY_REUSE_ENABLED .key -> " false" ) {
291291 val (plan, adaptivePlan) = runAdaptiveAndVerifyResult(
@@ -307,7 +307,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
307307 }
308308
309309 test(" Union/Except/Intersect queries" ) {
310- withSQLConf(SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ) {
310+ withSQLConf(SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ) {
311311 runAdaptiveAndVerifyResult(
312312 """
313313 |SELECT * FROM testData
@@ -322,7 +322,7 @@ class AdaptiveQueryExecSuite extends QueryTest with SharedSQLContext {
322322 }
323323
324324 test(" Subquery de-correlation in Union queries" ) {
325- withSQLConf(SQLConf .RUNTIME_REOPTIMIZATION_ENABLED .key -> " true" ) {
325+ withSQLConf(SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " true" ) {
326326 withTempView(" a" , " b" ) {
327327 Seq (" a" -> 2 , " b" -> 1 ).toDF(" id" , " num" ).createTempView(" a" )
328328 Seq (" a" -> 2 , " b" -> 1 ).toDF(" id" , " num" ).createTempView(" b" )
0 commit comments