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 2022/03/18 07:45:00 UTC

[jira] [Resolved] (SPARK-38583) to_timestamp should allow numeric types

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

Hyukjin Kwon resolved SPARK-38583.
----------------------------------
    Fix Version/s: 3.3.0
       Resolution: Fixed

Issue resolved by pull request 35887
[https://github.com/apache/spark/pull/35887]

> to_timestamp should allow numeric types
> ---------------------------------------
>
>                 Key: SPARK-38583
>                 URL: https://issues.apache.org/jira/browse/SPARK-38583
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Major
>             Fix For: 3.3.0
>
>
> SPARK-38240 mistakenly disallowed numeric type at to_timestamp. We should allow it back:
> {code}
> spark.range(1).selectExpr("to_timestamp(id)").show()
> {code}
> *Before*
> {code}
> +-------------------+
> |   to_timestamp(id)|
> +-------------------+
> |1970-01-01 09:00:00|
> +-------------------+
> {code}
> *After*
> {code}
> +-----------------+
> | to_timestamp(id)|
> +-----------------+
> |             null|
> +-----------------+
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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