You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (JIRA)" <ji...@apache.org> on 2019/06/23 04:53:00 UTC

[jira] [Updated] (SPARK-28141) Timestamp/Date type can not accept special values

     [ https://issues.apache.org/jira/browse/SPARK-28141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yuming Wang updated SPARK-28141:
--------------------------------
    Description: 
||Input String||Valid Types||Description||
|{{epoch}}|{{date}}, {{timestamp}}|1970-01-01 00:00:00+00 (Unix system time zero)|
|{{infinity}}|{{date}}, {{timestamp}}|later than all other time stamps|
|{{-infinity}}|{{date}}, {{timestamp}}|earlier than all other time stamps|
|{{now}}|{{date}}, {{time}}, {{timestamp}}|current transaction's start time|
|{{today}}|{{date}}, {{timestamp}}|midnight today|
|{{tomorrow}}|{{date}}, {{timestamp}}|midnight tomorrow|
|{{yesterday}}|{{date}}, {{timestamp}}|midnight yesterday|
|{{allballs}}|{{time}}|00:00:00.00 UTC|

https://www.postgresql.org/docs/12/datatype-datetime.html

  was:
||nput String||Valid Types||Description||
|{{epoch}}|{{date}}, {{timestamp}}|1970-01-01 00:00:00+00 (Unix system time zero)|
|{{infinity}}|{{date}}, {{timestamp}}|later than all other time stamps|
|{{-infinity}}|{{date}}, {{timestamp}}|earlier than all other time stamps|
|{{now}}|{{date}}, {{time}}, {{timestamp}}|current transaction's start time|
|{{today}}|{{date}}, {{timestamp}}|midnight today|
|{{tomorrow}}|{{date}}, {{timestamp}}|midnight tomorrow|
|{{yesterday}}|{{date}}, {{timestamp}}|midnight yesterday|
|{{allballs}}|{{time}}|00:00:00.00 UTC|

https://www.postgresql.org/docs/12/datatype-datetime.html


> Timestamp/Date type can not accept special values
> -------------------------------------------------
>
>                 Key: SPARK-28141
>                 URL: https://issues.apache.org/jira/browse/SPARK-28141
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Yuming Wang
>            Priority: Major
>
> ||Input String||Valid Types||Description||
> |{{epoch}}|{{date}}, {{timestamp}}|1970-01-01 00:00:00+00 (Unix system time zero)|
> |{{infinity}}|{{date}}, {{timestamp}}|later than all other time stamps|
> |{{-infinity}}|{{date}}, {{timestamp}}|earlier than all other time stamps|
> |{{now}}|{{date}}, {{time}}, {{timestamp}}|current transaction's start time|
> |{{today}}|{{date}}, {{timestamp}}|midnight today|
> |{{tomorrow}}|{{date}}, {{timestamp}}|midnight tomorrow|
> |{{yesterday}}|{{date}}, {{timestamp}}|midnight yesterday|
> |{{allballs}}|{{time}}|00:00:00.00 UTC|
> https://www.postgresql.org/docs/12/datatype-datetime.html



--
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