GitHub user wangyum opened a pull request: https://github.com/apache/spark/pull/21479
[SPARK-23903][SQL] Add support for date extract ## What changes were proposed in this pull request? Add support for date `extract`, supported field same as [Hive](https://github.com/apache/hive/blob/rel/release-2.3.3/ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g#L308-L316): `YEAR`, `QUARTER`, `MONTH`, `WEEK`, `DAY`, `HOUR`, `MINUTE`, `SECOND`. ## How was this patch tested? unit tests You can merge this pull request into a Git repository by running: $ git pull https://github.com/wangyum/spark SPARK-23903 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/21479.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #21479 ---- commit a1a4db3774e7e0911e710ed1a99694add29df545 Author: Yuming Wang <yumwang@...> Date: 2018-06-01T16:06:55Z Add support for date extract ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org