This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new e627b0a  [MINOR][SQL][DOCS][2.4] Fix the timestamp pattern in the 
example for `to_timestamp`
e627b0a is described below

commit e627b0ade56566b0bd61c7c7016ad7e8deea49d0
Author: Maxim Gekk <max.g...@gmail.com>
AuthorDate: Thu Feb 6 13:40:13 2020 -0800

    [MINOR][SQL][DOCS][2.4] Fix the timestamp pattern in the example for 
`to_timestamp`
    
    ### What changes were proposed in this pull request?
    In the PR, I propose to change the description of the `to_timestamp()` 
function, and change the pattern in the example.
    
    ### Why are the changes needed?
    To inform users about valid patterns for `to_timestamp` function.
    
    ### Does this PR introduce any user-facing change?
    No
    
    ### How was this patch tested?
    N/A
    
    Closes #27438 from MaxGekk/to_timestamp-z-2.4.
    
    Authored-by: Maxim Gekk <max.g...@gmail.com>
    Signed-off-by: Dongjoon Hyun <dh...@apple.com>
---
 sql/core/src/main/scala/org/apache/spark/sql/functions.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala 
b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
index f059add..f419a38 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
@@ -2967,7 +2967,7 @@ object functions {
    * See [[java.text.SimpleDateFormat]] for valid date and time format patterns
    *
    * @param s   A date, timestamp or string. If a string, the data must be in 
a format that can be
-   *            cast to a timestamp, such as `yyyy-MM-dd` or `yyyy-MM-dd 
HH:mm:ss.SSSS`
+   *            cast to a timestamp, such as `yyyy-MM-dd` or `yyyy-MM-dd 
HH:mm:ss`
    * @param fmt A date time pattern detailing the format of `s` when `s` is a 
string
    * @return A timestamp, or null if `s` was a string that could not be cast 
to a timestamp or
    *         `fmt` was an invalid format


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

Reply via email to