We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d200be2 commit b117a83Copy full SHA for b117a83
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/QueryPlanningTracker.scala
@@ -105,7 +105,7 @@ class QueryPlanningTracker {
105
* Measure the start and end time of a phase. Note that each phase can only be measured once.
106
*/
107
def measurePhase[T](phase: String)(f: => T): T = {
108
- require(phasesMap.containsKey(phase), s"Phase $phase has been run before.")
+ require(!phasesMap.containsKey(phase), s"Phase $phase has been run before.")
109
110
val startTime = System.currentTimeMillis()
111
val ret = f
0 commit comments