[ 
https://issues.apache.org/jira/browse/SPARK-8864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14616268#comment-14616268
 ] 

Adrian Wang commented on SPARK-8864:
------------------------------------

Thanks for the design.

Two comments:
1. If a IntervalType value is in year-month format, we cannot use 100ns to 
represent it. Hive use two internal types to handle year-month and day-time 
separately.
2. When casting TimestampType into StringType, or casting from 
StringType(unless it is a ISO8601 time string which contains timezone info), we 
should also consider timezone.

> Date/time function and data type design
> ---------------------------------------
>
>                 Key: SPARK-8864
>                 URL: https://issues.apache.org/jira/browse/SPARK-8864
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Reynold Xin
>            Assignee: Reynold Xin
>             Fix For: 1.5.0
>
>         Attachments: SparkSQLdatetimeudfs.pdf
>
>
> Please see the attached design doc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to