You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2016/10/08 11:51:20 UTC

[jira] [Commented] (SPARK-10681) DateTimeUtils needs a method to parse string to SQL's timestamp value

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

Hyukjin Kwon commented on SPARK-10681:
--------------------------------------

Hm, doesn't {{DateTimeUtils.stringToTimestamp}} handle this? (although it takes {{UTF8String}})

> DateTimeUtils needs a method to parse string to SQL's timestamp value
> ---------------------------------------------------------------------
>
>                 Key: SPARK-10681
>                 URL: https://issues.apache.org/jira/browse/SPARK-10681
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Yin Huai
>            Priority: Critical
>
> Right now, {{DateTimeUtils.stringToTime}} returns a java.util.Date whose getTime returns milliseconds. It will be great if we have a method to parse string directly to SQL's timestamp value (microseconds).



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

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