You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Peter Toth (JIRA)" <ji...@apache.org> on 2019/06/03 09:19:00 UTC
[jira] [Updated] (SPARK-27881) Support CAST (... FORMAT )
expression
[ https://issues.apache.org/jira/browse/SPARK-27881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Toth updated SPARK-27881:
-------------------------------
Description:
SQL:2016 standard supports the following Cast functions
{noformat}
CAST(<datetime> AS <char string type> [FORMAT <template>])
CAST(<char string> AS <datetime type> [FORMAT <template>])
{noformat}
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.)
was:
SQL:2016 standard supports the following Cast functions
{noformat}
CAST(<datetime> AS <char string type> [FORMAT <template>])
CAST(<char string> AS <datetime type> [FORMAT <template>])
{noformat}
to specify patterns to use during cast.
Oracle DB 18 already supports it: [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.)
> Support CAST (... FORMAT <pattern>) expression
> ----------------------------------------------
>
> Key: SPARK-27881
> URL: https://issues.apache.org/jira/browse/SPARK-27881
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Peter Toth
> Priority: Minor
>
> SQL:2016 standard supports the following Cast functions
> {noformat}
> CAST(<datetime> AS <char string type> [FORMAT <template>])
> CAST(<char string> AS <datetime type> [FORMAT <template>])
> {noformat}
> 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.)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org