Details
-
Improvement
-
Status: In Progress
-
Minor
-
Resolution: Unresolved
-
3.1.0
-
None
-
None
Description
SQL:2016 standard supports the following Cast functions
CAST(<datetime> AS <char string type> [FORMAT <template>]) CAST(<char string> AS <datetime type> [FORMAT <template>])
to specify patterns to use during cast.
Oracle DB 18 already supports a similar formatting option during cast: https://docs.oracle.com/en/database/oracle/oracle-database/18/sqlrf/CAST.html
There is an initiative in Impala: IMPALA-4018 and Hive HIVE-21575 to support.
(Please note that accepting the CAST (... FORMAT <pattern>) is just one part of these tickets, the other part regarding patterns is covered here: SPARK-27882.)
Attachments
Issue Links
- relates to
-
IMPALA-4018 Add support for SQL:2016 datetime templates/patterns/masks to CAST(... AS ... FORMAT <template>)
- Closed
-
HIVE-21575 Add support for SQL:2016 datetime templates/patterns/masks and CAST(... AS ... FORMAT <pattern>)
- Resolved
- links to