Github user rxin commented on the pull request:
https://github.com/apache/spark/pull/6981#issuecomment-119804966
@tarekauel do you want to reopen this now we have defined the semantics of
date functions?
Also take a look at how Hive implements these functions:
https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorUDFYearLong.java#L37
It basically pre-computes the values and then just return the right year.
---
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]