Skip to content

Commit 90045cf

Browse files
committed
SPARK-20213: Fix backward logic for nesting.
1 parent 6752ff2 commit 90045cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/SQLExecution.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ object SQLExecution extends Logging {
122122
// To avoid this warning, use nested { ... }
123123
if (!Option(sc.getLocalProperty(ALLOW_NESTED_EXECUTION)).exists(_.toBoolean)) {
124124
if (testing) {
125-
logWarning(s"$EXECUTION_ID_KEY is already set")
126-
} else {
127125
throw new IllegalArgumentException(s"$EXECUTION_ID_KEY is already set")
126+
} else {
127+
logWarning(s"$EXECUTION_ID_KEY is already set")
128128
}
129129
}
130130
body

0 commit comments

Comments
 (0)