Github user mgaido91 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19811#discussion_r156932923
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/limit.scala ---
    @@ -71,17 +71,15 @@ trait BaseLimitExec extends UnaryExecNode with 
CodegenSupport {
       }
     
       override def doConsume(ctx: CodegenContext, input: Seq[ExprCode], row: 
ExprCode): String = {
    -    val stopEarly = ctx.freshName("stopEarly")
    -    ctx.addMutableState(ctx.JAVA_BOOLEAN, stopEarly, s"$stopEarly = 
false;")
    +    val stopEarly = ctx.addMutableState(ctx.JAVA_BOOLEAN, "stopEarly")
    --- End diff --
    
    ditto


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to