Github user dongjoon-hyun commented on the issue:

    https://github.com/apache/spark/pull/18257
  
    Sure!
    
    First of all, this handles another invalid case, Range(0,0). 
    
    Second, although we fix the generated codes in the reported in SPARK-21041, 
we still generate **No-Op** code.
    
    Third, this PR removes the usuless No-Op codegen and Janino compilation and 
so on. This also will cowork with the other optimizer like 
PripagateEmptyRelation. 
    
    Finally, we can simplify the underlying logic later by preventing this kind 
of corner cases as eariler as possible.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to