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

    https://github.com/apache/spark/pull/20844#discussion_r175658889
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/basicPhysicalOperators.scala
 ---
    @@ -396,9 +396,11 @@ case class RangeExec(range: 
org.apache.spark.sql.catalyst.plans.logical.Range)
         // The default size of a batch, which must be positive integer
         val batchSize = 1000
     
    -    val initRangeFuncName = ctx.addNewFunction("initRange",
    +    val initRange = ctx.freshName("initRange")
    +
    +    val initRangeFuncName = ctx.addNewFunction(initRange,
           s"""
    -        | private void initRange(int idx) {
    +        | private void ${initRange}(int idx) {
    --- End diff --
    
    Hi @cloud-fan , before adding the comments, I have a question about why we 
still need `exchange ` if we join two `spark.range(1, 10, 1, 1)`. Because of 
both of the `range` are only one partition, does the `exchange` really needed?


---

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

Reply via email to