Github user cloud-fan commented on the issue:

    https://github.com/apache/spark/pull/14788
  
    For `date_add`, `date_sub`, `add_month`, I think we should support both 
DateType and TimestampType, and the return type should depend on the input type.
    
    For `last_day`, `first_day`, we should support both DateType and 
TimestampType, but the return type should always be DateType
    
    For `date_trunc`, we should support both DateType and TimestampType, but 
the return type should always be TimestampType
    
    cc @rxin 


---
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