Skip to content

Commit b117a83

Browse files
committed
require
1 parent d200be2 commit b117a83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/QueryPlanningTracker.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class QueryPlanningTracker {
105105
* Measure the start and end time of a phase. Note that each phase can only be measured once.
106106
*/
107107
def measurePhase[T](phase: String)(f: => T): T = {
108-
require(phasesMap.containsKey(phase), s"Phase $phase has been run before.")
108+
require(!phasesMap.containsKey(phase), s"Phase $phase has been run before.")
109109

110110
val startTime = System.currentTimeMillis()
111111
val ret = f

0 commit comments

Comments
 (0)