Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22630#discussion_r223024194
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/limit.scala ---
    @@ -46,6 +46,15 @@ case class CollectLimitExec(limit: Int, child: 
SparkPlan) extends UnaryExecNode
       }
     }
     
    +object BaseLimitExec {
    +  private val curId = new java.util.concurrent.atomic.AtomicInteger()
    +
    +  def newLimitCountTerm(): String = {
    +    val id = curId.getAndIncrement()
    +    s"_limit_counter_$id"
    +  }
    --- End diff --
    
    there is no `CodegenContext` here.


---

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

Reply via email to