GitHub user buptljy opened a pull request:
https://github.com/apache/flink/pull/6359
[FLINK-6895][table]Add STR_TO_DATE supported in SQL
## What is the purpose of the change
Add STR_TO_DATE Function supported in SQL
## Brief change log
* STR_TO_DATE(str string, format string)
\- if the format is literal, the return type will be timestamp,
otherwise it's date.
* Add tests in ScalarFunctionsTest.scala
* Add docs in sql.md
## Verifying this change
* Run unit tests in ScalarFunctionsTest.scala
## Does this pull request potentially affect one of the following parts:
* A new sql function
## Documentation
* Add docs in sql.md
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/buptljy/flink 6895-fix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/6359.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 #6359
----
commit 339a9e37c746dc8d3d283570c65f175edfee67b4
Author: wind <bupt_ljy@...>
Date: 2018-07-18T04:33:04Z
add StrToDate function
----
---