Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
SPARK-20213: Fix backward logic for nesting.
  • Loading branch information
rdblue committed May 2, 2017
commit 90045cfe7c8ac24c1586ebe2992466bdcb2980d6
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ object SQLExecution extends Logging {
// To avoid this warning, use nested { ... }
if (!Option(sc.getLocalProperty(ALLOW_NESTED_EXECUTION)).exists(_.toBoolean)) {
if (testing) {
logWarning(s"$EXECUTION_ID_KEY is already set")
} else {
throw new IllegalArgumentException(s"$EXECUTION_ID_KEY is already set")
} else {
logWarning(s"$EXECUTION_ID_KEY is already set")
}
}
body
Expand Down