Github user viirya commented on the issue:

    https://github.com/apache/spark/pull/19813
  
    > However for whole stage codegen path, it's way more complex:
    > 1. some of ctx.currentVars are just variables, their codes have already 
been generated before. But some are not. For those whose codes are not 
generated, they are not valid inputs.
    > 2. ctx.currentVars is not null but has null slots, and ctx.INPUT_ROW is 
not null. Then both ctx.currentVars and ctx.INPUT_ROW are valid inputs.
    
    
    Yes, this is correct.
    
    So, for 1, only the variables not evaluate yet, we don't include them as 
parameters.
    For 2, null slots in ctx.currentVars won't be included as parameters too. 
ctx.INPUT_ROW will be included only if it is not null.


---

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

Reply via email to